Back to Devexpress

ExpandStateChangingEventArgs.ElementsToExpandCollapse Property

windowsforms-devexpress-dot-xtrabars-dot-navigation-dot-expandstatechangingeventargs-d0abc6f9.md

latest2.2 KB
Original Source

ExpandStateChangingEventArgs.ElementsToExpandCollapse Property

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

Namespace : DevExpress.XtraBars.Navigation

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public ExpandCollapseElementList ElementsToExpandCollapse { get; }
vb
Public ReadOnly Property ElementsToExpandCollapse As ExpandCollapseElementList

Property Value

TypeDescription
DevExpress.XtraBars.Navigation.ExpandCollapseElementList

The list of elements to be additionally expanded/collapsed.

|

Remarks

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

Element

NewState

ExpandStateChangingEventArgs Class

ExpandStateChangingEventArgs Members

DevExpress.XtraBars.Navigation Namespace