Skip to main content

BarItemMenuHeader.Items Property

Gets a collection of all BarItems, hosted in this BarItemMenuHeader.

Namespace: DevExpress.Xpf.Bars

Assembly: DevExpress.Xpf.Core.v22.2.dll

NuGet Package: DevExpress.Wpf.Core


public CommonBarItemCollection Items { get; }

Property Value

Type Description

A DevExpress.Xpf.Bars.CommonBarItemCollection object that hosts BarItems owned by this BarItemMenuHeader.


There are two ways to populate link holders like BarItemMenuHeader objects. The traditional way is to create BarItemLinks for each BarItem required and place these links to the corresponding collection (the BarItemMenuHeader.ItemLinks collection for BarItemMenuHeaders). Use this approach to modify the desired link properties (e.g., a caption or icon) so that they differ from their source bar item settings.

Starting from version 14.1, you can directly add bar items to BarItemMenuHeader objects. The BarManager will automatically generate a link for each bar item added. This allows you to speed-up application UI development, since you do not need to manually create bar item links. Use this approach if bar item links should have the same settings as their parent bar items.


See Also