Skip to main content
A newer version of this page is available. .
Bar

ToolBarControl.AllowCollapse Property

Gets or sets whether it is allowed to collapse the ToolBarControl. This is a dependency property.

Namespace: DevExpress.Xpf.Bars

Assembly: DevExpress.Xpf.Core.v20.2.dll

NuGet Packages: DevExpress.WindowsDesktop.Wpf.Core, DevExpress.Wpf.Core

Declaration

public bool AllowCollapse { get; set; }

Property Value

Type Description
Boolean

true, if it is allowed to collapse the ToolBarControl; otherwise, false. The default is false.

Remarks

The ToolBarControl can be collapsed, hiding its contents. At run time, an end-user can collapse the ToolBarControl with a double click on the grag widget (see ToolBarControl.ShowDragWidget). In code, you can get or set whether the ToolBarControl is collapsed using the ToolBarControl.IsCollapsed property. The AllowCollapse property specifies whether it is allowed to collapse the ToolBarControl. By default, this feature is disabled. Set the AllowCollapse property to true to allow the ToolBarControl to be collapsed.

Note

The ToolBarControl cannot be collapsed if it occupies the entire row (see ToolBarControl.UseWholeRow).

See Also