Back to Devexpress

HamburgerMenuAdaptiveLayoutController.ViewState Property

wpf-devexpress-dot-xpf-dot-windowsui-dot-hamburgermenuadaptivelayoutcontroller-f1e90dec.md

latest2.4 KB
Original Source

HamburgerMenuAdaptiveLayoutController.ViewState Property

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

Declaration

csharp
public HamburgerMenuViewState ViewState { get; set; }
vb
Public Property ViewState As HamburgerMenuViewState

Property Value

TypeDescription
HamburgerMenuViewState

A HamburgerMenuViewState enumeration value that specifies the menu’s view state.

|

Available values:

NameDescription
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.

|

Remarks

When the ViewState property value changes, the HamburgerMenu.ViewStateChanged event fires.

See Also

ViewStateChanged

HamburgerMenuAdaptiveLayoutController Class

HamburgerMenuAdaptiveLayoutController Members

DevExpress.Xpf.WindowsUI Namespace