HamburgerMenuAdaptiveLayoutController.AvailableViewStates Property
Gets or sets whether the menu can be displayed in the Flyout, Overlay and/or Inline state.
Namespace: DevExpress.Xpf.WindowsUI
Assembly: DevExpress.Xpf.Controls.v24.2.dll
NuGet Package: DevExpress.Wpf.Controls
Declaration
Property Value
Type | Description |
---|---|
HamburgerMenuAvailableViewStates | A HamburgerMenuAvailableViewStates enumeration constant or their bitwise combination, that specifies the menu’s available view states. |
Available values:
Name | Description |
---|---|
Flyout | The flyout view state is enabled. The menu is hidden. With a click on the hamburger button, the menu is displayed in a fly-out overlaying the currently displayed page. |
Overlay | The overlay view state is enabled. The menu is displayed in the compact mode. With a click on the hamburger button, the menu is expanded overlaying the currently displayed page. |
Inline | The inline view state is enabled. The menu is displayed expanded inline with the current page. With a click on the hamburger button, the menu is displayed in the compact mode. |
All | All three view states are enabled. |
Remarks
The menu supports the adaptive layout, thus it automatically changes its view according to the window size. The AvailableViewStates property allows you to specify the view states in which the menu can be displayed. Using the HamburgerMenuAvailableViewStates enumeration, which supports combinations of its constants, you can enable only one, or any two, or all the provided states. To specify available sates in mark up, use the menu’s HamburgerMenu.AvailableViewStates property, which is automatically synchronized with the controller’s AvailableViewStates property whenever the menu’s template is applied.