Skip to main content

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

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