Back to Devexpress

RibbonControl.AllowAddingToToolbar Attached Property

wpf-devexpress-dot-xpf-dot-ribbon-dot-ribboncontrol-5fe62aa2.md

latest2.4 KB
Original Source

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

NuGet Package : DevExpress.Wpf.Ribbon

Declaration

See GetAllowAddingToToolbar(DependencyObject) and SetAllowAddingToToolbar(DependencyObject, Boolean).

Returns

TypeDescription
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.

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

SetAllowAddingToToolbar(DependencyObject, Boolean)

GetAllowAddingToToolbar(DependencyObject)

Ribbon Quick Access Toolbar

RibbonControl Class

RibbonControl Members

DevExpress.Xpf.Ribbon Namespace