Skip to main content
A newer version of this page is available. .
Bar

BarButtonItem.AllowDrawArrow Property

Gets or sets whether an arrow for the pop-up button should be displayed.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v19.2.dll

Declaration

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

Property Value

Type Default Description
Boolean **true**

true, if an arrow for the pop-up button should be displayed; otherwise, false.

Remarks

You can assign a drop-down menu to a BarButtonItem via the BarButtonItem.DropDownControl property (the button’s BarButtonItem.ButtonStyle property must be set to DropDown). When this is done, you can additionally set the BarButtonItem.ActAsDropDown property to specify whether the item should be displayed as a single UI element (in this case clicking the button invokes the menu), or as two separate elements: item caption/glyph and drop-down arrow (clicking the caption/glyph will raise the BarItem.ItemClick event, the drop-down menu is only invoked by clicking the drop-down arrow). For BarButtonItems that act as drop-down menus, it is possible to hide or display a drop-down arrow by using the AllowDrawArrow property (see the figure below).

BarItem - Draw Drop-down Arrow

BarButtonItems whose BarButtonItem.ActAsDropDown property equals false ignore the AllowDrawArrow property and always draw their drop-down arrows.

To specify whether the drop-down arrow should be visible for BarButtonItems within a menu, use the BarButtonItem.AllowDrawArrowInMenu property instead.

See Also