Skip to main content

Sub Menu

The Sub Menu is a flyout panel that allows you to extend the Main Menu.

Hamburger Submenu

To create a sub menu, place the HamburgerSubMenu control into the HamburgerMenu.Items collection. To specify the collection of sub menu items, use the HamburgerSubMenu.Items property. This collection accepts the HamburgerSubMenuNavigationButton objects.

You can display sub menu items directly in the main menu below the sub menu button in preview. To add a sub menu item to the preview, set its HamburgerSubMenuNavigationButton.ShowInPreview property to true.

You can also specify the flyout panel’s caption and its attributes using the HamburgerSubMenu.FlyoutHeader, HamburgerSubMenu.FlyoutHeaderHeight and HamburgerSubMenu.FlyoutHeaderPadding properties.

By default, when a sub menu item is selected, the item previously selected in the main menu is automatically deselected. Set the HamburgerSubMenu.IsStandaloneSelectionItemMode property to true to enable independent selection for the main menu and current sub-menu. If this option is enabled, selecting an item in the current sub-menu does not discard the selection in the main menu.