[Expand]General Information
[Expand]WinForms Controls
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Collapse]WPF Controls
 [Expand]What's Installed
 [Expand].NET Core 3 Support
 [Expand]Common Concepts
 [Expand]MVVM Framework
 [Collapse]Controls and Libraries
  [Expand]Data Grid
  [Expand]Ribbon, Bars and Menu
  [Expand]Charts Suite
  [Expand]Pivot Grid
  [Expand]Rich Text Editor
  [Expand]Tree List
  [Expand]Gauge Controls
  [Expand]Map Control
  [Expand]Layout Management
  [Collapse]Windows Modern UI
   [Collapse]Hamburger Menu
    [Collapse]Visual Elements
      Main Menu
      Sub Menu
      Bottom Bar
     Adaptive Layout
     MVVM Support
   [Expand]Content Containers
  [Expand]Data Editors
  [Expand]Navigation Controls
  [Expand]Spell Checker
  [Expand]Property Grid
  [Expand]PDF Viewer
  [Expand]TreeMap Control
  [Expand]Gantt Control
  [Expand]Diagram Control
  [Expand]Windows and Utility Controls
   Dialogs, Notifications and Panels
  [Expand]Scheduler (legacy)
 [Expand]Scaffolding Wizard
  Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Report and Dashboard Server
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

Sub Menu

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

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.

The markup below illustrates how to implement a HamburgerMenu with a sub menu.

Is this topic helpful?​​​​​​​