Skip to main content
Bar

BarButtonItem Class

Represents a bar button item.

Namespace: DevExpress.Xpf.Bars

Assembly: DevExpress.Xpf.Core.v14.2.dll

#Declaration

public class BarButtonItem :
    BarItem

#Remarks

Use this item to add a regular button to bars and menus.

BarButtonItem

Clicking a button invokes the BarItem.ItemClick and BarManager.ItemClick events. In addition, if a command is assigned to the BarItem.Command property, it's invoked as well.

The item's functionality can also be invoked by pressing the shortcut specified by the BarItem.KeyGesture property.

BarButtonItem objects are displayed on-screen using corresponding bar item links - BarButtonItemLink objects. See Items and Links to learn more.

See Also