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

AccordionControl.ExpandElementMode Property

Gets or sets whether a single element or multiple elements can be expanded simultaneously.

Namespace: DevExpress.XtraBars.Navigation

Assembly: DevExpress.XtraBars.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[DefaultValue(ExpandElementMode.SingleItem)]
[DXCategory("Behavior")]
[XtraSerializableProperty]
public ExpandElementMode ExpandElementMode { get; set; }

#Property Value

Type Default Description
ExpandElementMode SingleItem

A value that defines element expansion mode.

Available values:

Name Description
Single

A single element (item or group) can be expanded simultaneously.

Multiple

Multiple elements (items and/or groups) can be expanded simultaneously. In this mode, you can implement custom element expansion logic by handling the AccordionControl.ExpandStateChanging event.

SingleItem

A single item and multiple groups can be expanded simultaneously.

#Remarks

To implement custom element expansion logic, set the ExpandElementMode property to Multiple and handle the AccordionControl.ExpandStateChanging event.

See Also