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

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

NuGet Package: DevExpress.Win.Navigation

#Declaration

public AccordionElementState NewState { get; }

#Property Value

Type Description
DevExpress.XtraBars.Navigation.AccordionElementState

The new expansion state for the currently processed element.

#Remarks

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