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.v19.1.dll
Declaration
[XtraSerializableProperty]
[DefaultValue(false)]
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.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the AllowCollapse property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.