wpf-devexpress-dot-xpf-dot-windowsui-dot-hamburgermenuadaptivelayoutcontroller-f1e90dec.md
Gets or sets the whether the menu is expanded overlying or inline with the content, or collapsed up to a side bar or the toggle (hamburger) button.
Namespace : DevExpress.Xpf.WindowsUI
Assembly : DevExpress.Xpf.Controls.v25.2.dll
NuGet Package : DevExpress.Wpf.Controls
public HamburgerMenuViewState ViewState { get; set; }
Public Property ViewState As HamburgerMenuViewState
| Type | Description |
|---|---|
| HamburgerMenuViewState |
A HamburgerMenuViewState enumeration value that specifies the menu’s view state.
|
Available values:
| Name | Description |
|---|---|
| Opened |
Expanded overlaying the main content. The hamburger button toggles this state to Closed.
| | Closed |
Collapsed up to the hamburger button. The hamburger button toggles this state to Opened.
| | Inline |
Expanded inline with the main content. The hamburger button toggles this state to CompactInline.
| | CompactInline |
Collapsed up to a side bar. The hamburger button toggles this state to Inline.
| | Overlay |
Expanded overlaying the main content. The hamburger button toggles this state to CompactOverlay.
| | CompactOverlay |
Collapsed up to a side bar. The hamburger button toggles this state to Overlay.
|
When the ViewState property value changes, the HamburgerMenu.ViewStateChanged event fires.
See Also
HamburgerMenuAdaptiveLayoutController Class