Skip to main content
Bar

BarButtonItem.AllowDrawArrowInMenu Property

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

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

[DefaultValue(true)]
[DXCategory("Appearance")]
public bool AllowDrawArrowInMenu { get; set; }

Property Value

Type Default Description
Boolean true

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.

BarButtonItem.AllowDrawArrowInMenu

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).

BarButtonItem.AllowDrawArrowInMenu2

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