Skip to main content

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

NuGet Package: DevExpress.Wpf.Controls

Declaration

public bool ShowPeekFormOnItemHover { get; set; }

Property Value

Type Description
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.

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