Back to Devexpress

Main Menu

wpf-119511-controls-and-libraries-windows-modern-ui-hamburger-menu-visual-elements-main-menu.md

latest2.4 KB
Original Source

Main Menu

  • Mar 03, 2023

The main section of the Hamburger Menu contains navigation commands that are represented by buttons with icons and captions.

To specify the collection of the main menu, use the HamburgerMenu.Items property or declare buttons between the Hamburger Menu ‘s opening and closing tags in XAML. You can add the following buttons to the collection.

Use the Placement property to pin the button to the main menu’s top / bottom side.

To use the Hamburger Menu with another control, specify the control as the HamburgerMenu.Content property value:

xaml
<dxwui:HamburgerMenu >
    <dxwui:HamburgerSubMenu>
        <dxmvvm:Interaction.Behaviors>
            <dxwui:HamburgerSubMenuThemeSelectorBehavior ShowTouchThemes="False" PreviewThemeNames="VS2017Light,VS2017Dark,Office2019White,Office2019HighContrast"/>
        </dxmvvm:Interaction.Behaviors>
    </dxwui:HamburgerSubMenu>
    <dxwui:HamburgerMenu.Content>
        <dxdo:DockLayoutManager x:Name="dockManager">
            <dxdo:LayoutGroup x:Name="layoutRoot">
                ...
            </dxdo:LayoutGroup>
        </dxdo:DockLayoutManager>
    </dxwui:HamburgerMenu.Content>
</dxwui:HamburgerMenu>

See Also

Bottom Bar