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.v20.1.dll


public int ExpandAnimationDuration { get; set; }
Public Property ExpandAnimationDuration As Integer

Property Value

Type Default Description


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


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