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

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