Back to Devexpress

BarOptions.AllowCollapse Property

windowsforms-devexpress-dot-xtrabars-dot-baroptions-07f97511.md

latest2.2 KB
Original Source

BarOptions.AllowCollapse Property

Gets or sets whether a bar can be collapsed by 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(false)]
[XtraSerializableProperty]
public virtual bool AllowCollapse { get; set; }
vb
<XtraSerializableProperty>
<DefaultValue(False)>
Public Overridable Property AllowCollapse As Boolean

Property Value

TypeDefaultDescription
Booleanfalse

true if a bar can be collapsed by double-clicking on the bar’s drag widget; otherwise, false.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to AllowCollapse
Bar

.OptionsBar .AllowCollapse

|

Remarks

A bar’s drag widget is visible if the BarOptions.DrawDragBorder property is set to true.

To collapse and then restore the bar in code, use the bar’s BarOptions.BarState property.

To customize the time that the bar takes to collapse/expand, use the BarOptions.ExpandAnimationDuration property.

See Also

DrawDragBorder

BarState

ExpandAnimationDuration

BarOptions Class

BarOptions Members

DevExpress.XtraBars Namespace