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.v24.1.dll
NuGet Package: 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 |
|
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