BarLinkContainerItem Class
Represents a link container.
Namespace: DevExpress.XtraBars
Assembly: DevExpress.XtraBars.v24.1.dll
NuGet Package: DevExpress.Win.Navigation
Declaration
public class BarLinkContainerItem :
BarCustomContainerItem,
BarLinksHolder,
IOptionsMultiColumnOwner,
IXtraSerializationIdProvider,
IXtraCollectionDeserializationOptionsProvider,
IXtraSupportDeserializeCollection
Remarks
Use the BarLinkContainerItem
item to represent a group of item links. This can be useful if you need to display specific bar items within multiple menus.
- Create a
BarLinkContainerItem
item. - Add bar item links.
- Add the
BarLinkContainerItem
item to a toolbar or menu.
At design time, the BarLinkContainerItem
item is displayed as a single entry. The following screenshot displays a BarLinkContainerItem
item displayed within a menu (at design time):
At runtime, the BarLinkContainerItem
item is expanded to display its bar item links:
Note
If a BarLinkContainerItem
is placed onto a toolbar or Ribbon Control, the BarLinkContainerItem
is represented as a submenu.
Use the BarCustomContainerItem.ItemLinks property to add bar item links. At design time, use the BarManager’s Customization Window to add links to the container item.
Important
If you create a bar item in code, associate the bar item with the BarManager or RibbonControl.
Use the constructor with the BarManager
parameter. To display the bar item within the Ribbon Control, pass the RibbonControl.Manager object as the BarManager
parameter.