wpf-devexpress-dot-xpf-dot-navigation-dot-officenavigationbar-f42f6fee.md
Gets or sets whether a Peek Form is automatically shown when an item is hovered over with the mouse pointer. This is a dependency property.
Namespace : DevExpress.Xpf.Navigation
Assembly : DevExpress.Xpf.Controls.v25.2.dll
NuGet Package : DevExpress.Wpf.Controls
public bool ShowPeekFormOnItemHover { get; set; }
Public Property ShowPeekFormOnItemHover As Boolean
| Type | Description |
|---|---|
| Boolean |
true, if a Peek Form is automatically shown when an item is hovered over with the mouse pointer; otherwise, false.
|
By default, when an OfficeNavigationBar item is hovered over with the mouse pointer, the Peek Form associated with the item is automatically displayed. To provide a DataTemplate to render the Peek Form , use the NavigationBarItem.PeekFormTemplate property. See the code snippet below.
xmlns:dxwui="http://schemas.devexpress.com/winfx/2008/xaml/windowsui"
<dxnav:NavigationBarItem Content="NavigationBarItem3">
<dxnav:NavigationBarItem.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>
</dxnav:NavigationBarItem.PeekFormTemplate>
</dxnav:NavigationBarItem>
To prevent Peek Forms from being displayed, set the ShowPeekFormOnItemHover property to false.
See Also