Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.v24.2.dll

NuGet Package: DevExpress.Wpf.Controls

#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