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.1.dll
NuGet Package: DevExpress.Wpf.NavBar
Declaration
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