Back to Devexpress

HamburgerMenu.ShowRevealHighlightEffect Property

wpf-devexpress-dot-xpf-dot-windowsui-dot-hamburgermenu.md

latest2.1 KB
Original Source

HamburgerMenu.ShowRevealHighlightEffect Property

Specifies whether to add the Reveal Highlight effect to the menu.

Namespace : DevExpress.Xpf.WindowsUI

Assembly : DevExpress.Xpf.Controls.v25.2.dll

NuGet Package : DevExpress.Wpf.Controls

Declaration

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

Property Value

TypeDescription
Boolean

true, to add the Reveal Highlight effect to the menu; otherwise, false.

|

Remarks

The image below illustrates the effect.

When the effect is enabled, define a template for the HamburgerMenuNavigationButton and set the ShowSelectionIndicator property to true to indicate the current selection. See the example below.

xaml
<Window.Resources>
        <DataTemplate x:Key="HamburgerMenuItemTemplate" DataType="{x:Type ViewModel:MainViewModel}">
            <dxwui:HamburgerMenuNavigationButton 
                Content="{Binding Caption}" 
                NavigationTargetTypeName="{Binding PageName}" 
                ShowSelectionIndicator="True"/>
        </DataTemplate>
    </Window.Resources>
    <dxwui:HamburgerMenu ItemTemplate="{StaticResource HamburgerMenuItemTemplate}"
                         ShowRevealHighlightEffect="True">
    </dxwui:HamburgerMenu>

See Also

HamburgerMenu Class

HamburgerMenu Members

DevExpress.Xpf.WindowsUI Namespace