Bar

BarItem Class

Represents the base class for bar items.

Namespace: DevExpress.Xpf.Bars

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

Declaration

public abstract class BarItem :
    FrameworkContentElement,
    IBarItem,
    IBarManagerControllerAction,
    IControllerAction,
    INotifyPropertyChanged,
    IMultipleElementRegistratorSupport,
    IBarNameScopeSupport,
    IInputElement,
    ICommandSourceServiceSupport,
    ICommandSource,
    IBarHistoryListItemRecord

The following members accept/return BarItem objects:

Remarks

All elements displayed by Bars, Ribbon and Menus are represented by bar items and bar item links.

Bar items are buttons, sub-menus, static text, editors, and other elements. They can be added directly to toolbars (ToolBarControl, MainMenuControl, StatusBarControl and Bar objects), sub-menus (BarSubItem), popup menus (PopupMenu and RadialContextMenu) and the RibbonControl.

<Window
...
xmlns:dxb="http://schemas.devexpress.com/winfx/2008/xaml/bars"> 
    <dxb:ToolBarControl VerticalAlignment="Top"> 
        <dxb:BarButtonItem Content="Cut"/> 
        <dxb:BarButtonItem Content="Copy"/> 
        <dxb:BarButtonItem Content="Paste"/> 
    </dxb:ToolBarControl>
</Window>

Refer to the Items and Links topic for more information.

Implements

See Also