Back to Devexpress

BarItem Class

wpf-devexpress-dot-xpf-dot-bars-2e2ee396.md

latest4.8 KB
Original Source

BarItem Class

Represents the base class for bar items.

Namespace : DevExpress.Xpf.Bars

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

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public abstract class BarItem :
    FrameworkContentElement,
    IBarItem,
    IBarManagerControllerAction,
    IControllerAction,
    INotifyPropertyChanged,
    IMultipleElementRegistratorSupport,
    IBarNameScopeSupport,
    IInputElement,
    ICommandSourceServiceSupport,
    ICommandSource,
    IBarHistoryListItemRecord
vb
Public MustInherit Class BarItem
    Inherits FrameworkContentElement
    Implements IBarItem,
               IBarManagerControllerAction,
               IControllerAction,
               INotifyPropertyChanged,
               IMultipleElementRegistratorSupport,
               IBarNameScopeSupport,
               IInputElement,
               ICommandSourceServiceSupport,
               ICommandSource,
               IBarHistoryListItemRecord

The following members 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.

xaml
<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

IControllerAction

Inheritance

Show 22 items

Object DispatcherObject DependencyObject ContentElement FrameworkContentElement BarItem BarButtonItem

BarEditItem

BarItemMenuHeader

BarItemSeparator

BarLinkContainerItem

BarStaticItem

BarButtonGroup

RibbonGalleryBarItem

BarItemSelector

BarListItem

BarSplitButtonItem

BarSplitCheckItem

LinkListItem

ToolbarListItem

BarSubItem

BarCheckItem

See Also

BarItem Members

Items and Links

DevExpress.Xpf.Bars Namespace