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

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

NuGet Packages: DevExpress.WindowsDesktop.Wpf.Ribbon, DevExpress.Wpf.Navigation

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