Bar Class
Represents a Windows-like toolbar.
Namespace: DevExpress.XtraBars
Assembly: DevExpress.XtraBars.v24.1.dll
NuGet Package: DevExpress.Win.Navigation
#Declaration
public class Bar :
BaseBarComponent,
BarLinksHolder,
IDockableObject,
ISupportWindowActivate,
IAppearanceOwner,
ISupportXtraAnimation,
IXtraObjectWithBounds,
IXtraSerializationIdProvider,
IXtraCollectionDeserializationOptionsProvider,
IXtraSupportDeserializeCollection,
IAutoOpenMenuBar,
IAccessiblePropertiesProvider
#Related API Members
The following members return Bar objects:
#Remarks
A bar is used to display all BarItemLink descendants.
To control user capabilities and customize the bar’s behavior, use the Bar.OptionsBar object which provides a number of specific options.
For instance, the BarOptions.AllowDelete, BarOptions.AllowRename and BarOptions.DisableClose properties allow you to specify if deleting, renaming or closing the bar is permitted at runtime. The BarOptions.MultiLine property specifies whether bar links can be arranged within multiple rows, etc.
To customize the bar’s appearance, use the Bar.Appearance property. If you need to apply common styles to a number of bars in your application, you can employ the DefaultBarAndDockingController component. See Appearance and Look and Feel to learn more.