Skip to main content

ExpandStateChangingEventArgs.NewState Property

Gets the new expansion state into which the currently processed element (ExpandStateChangingEventArgs.Element) will be set after your ExpandStateChanging event handler is complete.

Namespace: DevExpress.XtraBars.Navigation

Assembly: DevExpress.XtraBars.v24.1.dll

NuGet Package: DevExpress.Win.Navigation


public AccordionElementState NewState { get; }

Property Value

Type Description

The new expansion state for the currently processed element.


The NewState property value is the opposite of the current expansion state, specified by the AccordionControlElementBase.Expanded property.

While handling the AccordionControl.ExpandStateChanging event, do not change element expansion states using the AccordionControlElementBase.Expanded property. Use the ExpandStateChangingEventArgs.ElementsToExpandCollapse property instead.

See Also