Back to Devexpress

NavBarGroup.PeekFormTemplate Property

wpf-devexpress-dot-xpf-dot-navbar-dot-navbargroup.md

latest3.0 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Wpf.NavBar

Declaration

csharp
public DataTemplate PeekFormTemplate { get; set; }
vb
Public Property PeekFormTemplate As DataTemplate

Property Value

TypeDescription
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.

xaml
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

PeekFormShowMode

PeekFormShowDelay

PeekFormHideDelay

PeekFormTemplateSelector

Flyout

Templating View Elements

NavBarGroup Class

NavBarGroup Members

DevExpress.Xpf.NavBar Namespace