Skip to main content
A newer version of this page is available. .
Bar

BarItemLinkHolderBase.Items Property

Provides access to a bar item collection, whose related bar item links are displayed within this BarItemLinkHolderBase object.

Namespace: DevExpress.Xpf.Bars

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

Declaration

public CommonBarItemCollection Items { get; }

Property Value

Type Description
DevExpress.Xpf.Bars.CommonBarItemCollection

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

Remarks

There are two ways to populate link containers like BarItemLinkHolderBase class descendants. The traditional way is to create BarItemLinks for each BarItem required, and place these links to the corresponding collection (the BarItemLinkHolderBase.ItemLinks collection for BarItemLinkHolderBase objects). 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 BarItemLinkHolderBase 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.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Items 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.

Implements

See Also