HamburgerMenu.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 hamburger button.

Namespace: DevExpress.Xpf.WindowsUI

Assembly: DevExpress.Xpf.Controls.v21.1.dll

Declaration

public HamburgerMenuViewState ViewState { get; set; }

Property Value

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.

Remarks

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

See Also