Skip to main content
Bar

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.v23.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