Skip to main content

ExpandStateChangingEventArgs.ElementsToExpandCollapse Property

Gets the list of elements to be additionally expanded/collapsed.

Namespace: DevExpress.XtraBars.Navigation

Assembly: DevExpress.XtraBars.v23.2.dll

NuGet Package: DevExpress.Win.Navigation


public ExpandCollapseElementList ElementsToExpandCollapse { get; }

Property Value

Type Description

The list of elements to be additionally expanded/collapsed.


To expand/collapse additional elements in code, add these elements to the ElementsToExpandCollapse list. Each list item identifies an element to be expanded/collapsed and the new expansion state for this element. After your AccordionControl.ExpandStateChanging event handler is complete, the AccordionControl traverses through the ElementsToExpandCollapse list and expands/collapses corresponding elements.

Initially, the ElementsToExpandCollapse list contains a single item, which is the currently processed element (ExpandStateChangingEventArgs.Element).

See Also