RibbonControl.ToolbarItems Property
Provides access to the collection of bar items and bar item links displayed in the Quick Access Toolbar.
Namespace: DevExpress.Xpf.Ribbon
Assembly: DevExpress.Xpf.Ribbon.v19.2.dll
Declaration
Property Value
Type | Description |
---|---|
DevExpress.Xpf.Bars.CommonBarItemCollection | A DevExpress.Xpf.Bars.CommonBarItemCollection collection that stores elements that populate this ribbon’s Quick Access Toolbar. |
Remarks
You can add BarItem and BarItemLink descendants to the ToolbarItems collection.
Example
This example shows how to add items to the Quick Access Toolbar. To add items to this bar, the RibbonControl.ToolbarItemLinks collection is used.
The following image shows the result:
Note
A complete sample project is available at https://github.com/DevExpress-Examples/how-to-create-a-ribboncontrol-e2201.
<dxr:RibbonControl.ToolbarItemLinks>
<dxb:BarButtonItemLink BarItemName="bOpen"/>
<dxb:BarButtonItemLink BarItemName="bSave"/>
</dxr:RibbonControl.ToolbarItemLinks>
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the ToolbarItems property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.