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.v18.2.dll
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>
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the PeekFormTemplate property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.