Back to Devexpress

AccordionOptionsHamburgerMenu.DisplayMode Property

windowsforms-devexpress-dot-xtrabars-dot-navigation-dot-accordionoptionshamburgermenu.md

latest3.5 KB
Original Source

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

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(AccordionControlDisplayMode.Inline)]
public AccordionControlDisplayMode DisplayMode { get; set; }
vb
<DefaultValue(AccordionControlDisplayMode.Inline)>
Public Property DisplayMode As AccordionControlDisplayMode

Property Value

TypeDefaultDescription
AccordionControlDisplayModeInline

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

|

Available values:

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

See Also

ViewType

State

AccordionOptionsHamburgerMenu Class

AccordionOptionsHamburgerMenu Members

DevExpress.XtraBars.Navigation Namespace