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
#Returned By
Properties and methods that return Bar instances:
#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:
- by setting the container type via the Bar.DockInfo.ContainerType (BarDockInfo.ContainerType) property
- by setting the container name via Bar.DockInfo.ContainerName (BarDockInfo.ContainerName) property
- by assigning the container to the Bar.DockInfo.Container (BarDockInfo.Container) property
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.