Skip to main content

Bar Class

Represents a bar.

Namespace: DevExpress.Xpf.Bars

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

#Declaration

public class Bar :
    BarItemLinkHolderBase,
    ILinksHolder,
    IBarManagerControllerAction,
    IBarsSerializable,
    IMergingSupport,
    IMultipleElementRegistratorSupport,
    IBarNameScopeSupport,
    IInputElement,
    IBar

#Remarks

A bar is a container of bar item links (links referring to specific bar items). To add links to the bar, use the inherited BarItemLinkHolderBase.ItemLinks collection.

For a bar to be displayed on-screen, it must be bound to a specific bar container (a BarContainerControl object). You can create bar containers implicitly via the BarManager.CreateStandardLayout property, or manually. See the BarContainerControl topic, to learn more about creating bar containers.

A bar can be bound to a container via the Bar.DockInfo object, using one of the following methods:

The first method is appropriate if bar containers are created implicitly via the BarManager.CreateStandardLayout property. If you are creating bar containers manually, you can use any of these methods.

To create a floating bar, set the Bar.DockInfo.ContainerType property to Floating.

#Implements

See Also