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

AccordionOptionsHamburgerMenu.DisplayMode Property

Gets or sets how the hamburger menu is displayed in the collapsed/expanded state: a toggle button/overlays the content, a side bar/overlays the content, or a side bar/in-line with the content.

Namespace: DevExpress.XtraBars.Navigation

Assembly: DevExpress.XtraBars.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[DefaultValue(AccordionControlDisplayMode.Inline)]
public AccordionControlDisplayMode DisplayMode { get; set; }

#Property Value

Type Default Description
AccordionControlDisplayMode Inline

An AccordionControlDisplayMode enumeration value, such as Minimal, Overlay or Inline, that specifies the display mode.

Available values:

Name Description
Inline

The Hamburger Menu is displayed as a side bar when collapsed, and in-line with the form content when expanded.

Overlay

The Hamburger Menu is displayed as a side bar when collapsed, and in an overlay above the content area when expanded.

Minimal

In the collapsed state, the Hamburger Menu is rendered as a small Hamburger button (when DockStyle is Left, Right or None), or as a top-aligned bar containing the Hamburger button (when DockStyle is Top). In the expanded state, the menu is shown in an overlay above the content area.

#Property Paths

You can access this nested property as listed below:

Object Type Path to DisplayMode
AccordionControl
.OptionsHamburgerMenu .DisplayMode

#Remarks

The DisplayMode property specifies how the hamburger menu is displayed in the collapsed/expanded state:

  • Minimal — a toggle button/overlays the content;
  • Overlay — a side bar/overlays the content;
  • Inline — a side bar/in-line with the content.

To specify the state: expanded or collapsed — use the AccordionControl.OptionsMinimizing.State property (see OptionsMinimizing.State). See Hamburger Menu View Style for more information on the Hamburger view.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the DisplayMode property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also