Back to Devexpress

OfficeNavigationBar.ShowPeekFormOnItemHover Property

wpf-devexpress-dot-xpf-dot-navigation-dot-officenavigationbar-f42f6fee.md

latest2.8 KB
Original Source

OfficeNavigationBar.ShowPeekFormOnItemHover Property

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

Declaration

csharp
public bool ShowPeekFormOnItemHover { get; set; }
vb
Public Property ShowPeekFormOnItemHover As Boolean

Property Value

TypeDescription
Boolean

true, if a Peek Form is automatically shown when an item is hovered over with the mouse pointer; otherwise, false.

|

Remarks

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.

xaml
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

PeekFormShowDelay

PeekFormHideDelay

OfficeNavigationBar Class

OfficeNavigationBar Members

DevExpress.Xpf.Navigation Namespace