BarButtonStyle Enum
Specifies the BarButtonItem control style.
Namespace: DevExpress.XtraBars
Assembly: DevExpress.XtraBars.v24.2.dll
NuGet Package: DevExpress.Win.Navigation
#Declaration
#Members
Name | Description |
---|---|
Default
|
Applies the Default style to the Bar |
Drop
|
Applies the Drop |
Check
|
Applies the Check style to the Bar |
Check
|
Combines Check and Drop |
#Related API Members
The following properties accept/return BarButtonStyle values:
#Remarks
The BarButtonItem.ButtonStyle property can contain BarButtonStyle enumeration members. The property determines the BarButtonItem control’s functionality.
The Check style allows the BarButtonItem component to be checked. Since there are two types of item containers supported by the DevExpress Ribbon, Menu and Docking Library, there are two types of display for checked items.
within the popup or dropdown menu:
or without images:
within the toolbar:
or without images:
The DropDown style allows the BarButtonItem component to contain a Dropdown control. Specify the BarButtonItem.DropDownControl to assign a dropdown to the item. To determine the property, you must have a PopupControlContainer or PopupMenu component within the project.
The Dropdown control is a PopupControlContainer with a ListBox control:
The Dropdown control is a PopupMenu:
The CheckDropDown style combines both Check and DropDown styles. A button with this style applied can display a drop-down control and supports checked/unchecked visual states.
The Default style determines a simple toolbar button or menu item. It can contain a descriptive image and caption.