Skip to main content

RibbonControl.AllowAddingToToolbar Attached Property

Gets or sets whether the bar item can be added to the Ribbon Quick Access Toolbar using the context menu. This is an attached property.

Namespace: DevExpress.Xpf.Ribbon

Assembly: DevExpress.Xpf.Ribbon.v24.2.dll

NuGet Package: DevExpress.Wpf.Ribbon

Declaration

Returns

Type Description
Boolean

true if the bar item can be added to the Quick Access Toolbar using the context menu; otherwise, false.

Remarks

At runtime, an end-user can add commands to the Quick Access Toolbar using the context menu. In the figure below, you can see the Add to Quick Access Toolbar button in the context menu that allows the Close bar item to be added to the Quick Access Toolbar.

CD_QAT_AddToQAT_Menu

The AllowAddingToToolbar attached property is applicable to BarItem objects and allows you to specify whether a particular bar item can be added to the Quick Access Toolbar using the context menu. By default, this feature is enabled. Set the AllowAddingToToolbar property to false to hide the corresponding button from the context menu.

See Also