Skip to main content
Bar

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.v24.2.dll

NuGet Package: 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 drag 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