Back to Devexpress

BarOptions.ExpandAnimationDuration Property

windowsforms-devexpress-dot-xtrabars-dot-baroptions-4f7381a6.md

latest2.3 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(-1)]
public int ExpandAnimationDuration { get; set; }
vb
<DefaultValue(-1)>
Public Property ExpandAnimationDuration As Integer

Property Value

TypeDefaultDescription
Int32-1

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

|

Property Paths

You can access this nested property as listed below:

Object TypePath 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

AllowCollapse

DrawDragBorder

BarState

BarOptions Class

BarOptions Members

DevExpress.XtraBars Namespace