Skip to main content
Bar

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

BarItem Class

Represents the base class for bar items.

Namespace: DevExpress.Xpf.Bars

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

NuGet Package: DevExpress.Wpf.Core

#Declaration

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

#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