Skip to main content
Bar

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

BarOptions.ExpandAnimationDuration Property

Gets or sets the duration of the collapse/expand animation on double-clicking on the bar’s drag widget.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[DefaultValue(-1)]
public int ExpandAnimationDuration { get; set; }

#Property Value

Type Default Description
Int32 -1

An Int32 value that is the collapse/expand animation duration.

#Property Paths

You can access this nested property as listed below:

Object Type Path to ExpandAnimationDuration
Bar
.OptionsBar .ExpandAnimationDuration

#Remarks

If the BarOptions.AllowCollapse option is enabled, the current bar can be collapsed/expanded at runtime by double-clicking on the bar’s drag widget (see BarOptions.DrawDragBorder), or in code using the BarOptions.BarState property. The ExpandAnimationDuration property specifies the time, in milliseconds, that the bar takes to collapse/expand. If this property is set to -1 (the default value), the animation lasts 300 milliseconds.

See Also