Bar

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

Declaration

[XtraSerializableProperty]
[DefaultValue(false)]
public virtual bool AllowCollapse { get; set; }
<XtraSerializableProperty>
<DefaultValue(False)>
Public Overridable Property AllowCollapse As Boolean

Property Value

Type Default Description
Boolean

false

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 Type Path 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