Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

NavBarGroup.PeekFormTemplate Property

Gets or sets a DataTemplate used to render the PeekForm for the current group.

Namespace: DevExpress.Xpf.NavBar

Assembly: DevExpress.Xpf.NavBar.v24.2.dll

NuGet Package: DevExpress.Wpf.NavBar

#Declaration

public DataTemplate PeekFormTemplate { get; set; }

#Property Value

Type Description
DataTemplate

A DataTemplate used to render the PeekForm for the current group.

#Remarks

If the NavigationPaneView.PeekFormShowMode property is set to OverflowPanel, Collapsed or Both, PeekForms are shown for inactive groups when an end-user hovers over these groups with the mouse pointer. The PeekFormTemplate property allows you to specify the DataTemplate used to render the PeekForm for the current group.

The following markup shows how to render the PeekForm using the Flyout control.

xmlns:dxwui="http://schemas.devexpress.com/winfx/2008/xaml/windowsui"
xmlns:dxn="http://schemas.devexpress.com/winfx/2008/xaml/navbar"

<dxn:NavBarGroup.PeekFormTemplate>
    <DataTemplate>
        <dxwui:Flyout ShowIndicator="True">
            <StackPanel>
                <dxwui:MenuFlyoutItem Content="90° clockwise" Command="{Binding RotateClockwise}" />
                <dxwui:MenuFlyoutItem Content="90° counter clockwise" Command="{Binding RotateCounterclockwise}" />
                <dxwui:MenuFlyoutItem Content="180°" Command="{Binding Rotate180}" />
                <dxwui:MenuFlyoutSeparator />
                <dxwui:MenuFlyoutItem Content="Reset" Command="{Binding RotateReset}" />
            </StackPanel>
        </dxwui:Flyout>
    </DataTemplate>
</dxn:NavBarGroup.PeekFormTemplate>
See Also