Back to Devexpress

BarButtonItem.AllowDrawArrowInMenu Property

windowsforms-devexpress-dot-xtrabars-dot-barbuttonitem-ad2c40e9.md

latest2.8 KB
Original Source

BarButtonItem.AllowDrawArrowInMenu Property

Gets or sets whether the drop-down BarButtonItem should display an arrow in menus.

Namespace : DevExpress.XtraBars

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(true)]
[DXCategory("Appearance")]
public bool AllowDrawArrowInMenu { get; set; }
vb
<DefaultValue(True)>
<DXCategory("Appearance")>
Public Property AllowDrawArrowInMenu As Boolean

Property Value

TypeDefaultDescription
Booleantrue

true if the drop-down BarButtonItem should display an arrow in menus; otherwise, false.

|

Remarks

If the BarButtonItem displayed within a menu, itself contains a drop-down menu (see the BarButtonItem.DropDownControl property), you can manually specify whether the drop-down arrow for this BarButtonItem should be displayed. The figure below illustrates the drop-down button with and without an arrow.

The AllowDrawArrowInMenu property has effect only for BarButtonItems, whose BarButtonItem.ActAsDropDown property equals true. Otherwise, the drop-down arrow is always visible (see the image below).

If the drop-down BarButtonItem is not displayed within a menu, you can specify the visibility of its arrow via the BarButtonItem.AllowDrawArrow property.

See Also

DropDownControl

ActAsDropDown

AllowDrawArrow

BarButtonItem Class

BarButtonItem Members

DevExpress.XtraBars Namespace