Skip to main content
A newer version of this page is available. .
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.v21.2.dll

NuGet Packages: DevExpress.Win.Design, DevExpress.Win.Navigation

Declaration

[DefaultValue(false)]
[XtraSerializableProperty]
public virtual bool AllowCollapse { get; set; }

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