BarSubItem.AllowDrawArrow Property
Gets or sets whether to display a drop-down arrow in the sub-menu button.
Namespace: DevExpress.XtraBars
Assembly: DevExpress.XtraBars.v20.1.dll
NuGet Package: DevExpress.Win.Navigation
Declaration
Property Value
Type | Default | Description |
---|---|---|
DefaultBoolean | Default | Default or True to display a drop-down arrow; otherwise, False. |
Available values:
Name | Description |
---|---|
True | Corresponds to a Boolean value of true. |
False | Corresponds to a Boolean value of false. |
Default | The value is determined by the current object’s parent object setting (e.g., a control setting). |
Remarks
The sub-menu button in the owner bar displays a drop-down arrow.
Use the AllowDrawArrow to hide the drop-down arrow. If the owner bar is the application’s main menu (see BarManager.MainMenu), the sub-menu button does not display the drop-down arrow regardless of the AllowDrawArrow property value.
Tip
If you need to display a main menu button with a drop-down arrow, use a BarButtonItem with the following settings:
- ActAsDropDown set to true.
- ButtonStyle set to DropDown.
- DropDownControl set to a PopupMenu