Bar

BarSubItem.Items Property

Provides access to a collection of bar items, whose links are displayed within this BarSubItem.

Namespace: DevExpress.Xpf.Bars

Assembly: DevExpress.Xpf.Core.v20.1.dll

Declaration

public CommonBarItemCollection Items { get; }
Public ReadOnly Property Items As CommonBarItemCollection

Property Value

Type Description
DevExpress.Xpf.Bars.CommonBarItemCollection

A DevExpress.Xpf.Bars.CommonBarItemCollection object that stores bar items, whose links are displayed within this BarSubItem.

Remarks

There are two ways to populate link holders like BarSubItem objects. The traditional way is to create BarItemLinks for each BarItem required and place these links to the corresponding collection (the BarLinkContainerItem.ItemLinks collection for BarSubItems). Use this approach to modify 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 BarSubItem objects. The BarManager will automatically generate a link for each bar item added. This allows you to speed-up the 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.

Implements

See Also