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

NuGet Package: DevExpress.Wpf.Ribbon

#Declaration

public CommonBarItemCollection ToolbarItems { get; }

#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:

RibbonControl_Ex

View Example

<dxr:RibbonControl.ToolbarItemLinks>
    <dxb:BarButtonItemLink BarItemName="bOpen"/>
    <dxb:BarButtonItemLink BarItemName="bSave"/>
</dxr:RibbonControl.ToolbarItemLinks>
See Also