windowsforms-devexpress-dot-xtrabars-dot-baroptions-4f7381a6.md
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.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
[DefaultValue(-1)]
public int ExpandAnimationDuration { get; set; }
<DefaultValue(-1)>
Public Property ExpandAnimationDuration As Integer
| Type | Default | Description |
|---|---|---|
| Int32 | -1 |
An Int32 value that is the collapse/expand animation duration.
|
You can access this nested property as listed below:
| Object Type | Path to ExpandAnimationDuration |
|---|---|
| Bar |
.OptionsBar .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