Back to Devexpress

BarItemSeparator Class

wpf-devexpress-dot-xpf-dot-bars-f9b706f9.md

latest4.5 KB
Original Source

BarItemSeparator Class

Visually separates bar items.

Namespace : DevExpress.Xpf.Bars

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

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public class BarItemSeparator :
    BarItem
vb
Public Class BarItemSeparator
    Inherits BarItem

Remarks

The BarItemSeparator displays a line that separates neighboring backstage items. This separation improves visual perception and increases BackstageViewControl readability.

Define a new instance of the BarItemSeparator class in a bar’s Items collection to create a separator item. To do it via XAML, place a BarItemSeparator class object between the opening and the closing tags of the BarManager.Items markup.

The following code snippets (auto-collected from DevExpress Examples) contain references to the BarItemSeparator class.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

mvvm-application-with-wpf-bars/CS/Bars_in_MVVM_Application/MainWindow.xaml#L42

xml
BarItemDisplayMode="ContentAndGlyph"/>
<dxb:BarItemSeparator/>
<dxb:BarCheckItem x:Name="completed" Content="Completed"

wpf-spreadsheet-customize-context-menu/CS/WpfSpreadsheetMenuCustomization/MainWindow.xaml#L17

xml
<dxb:InsertAction Index="3">
    <dxb:BarItemSeparator />
</dxb:InsertAction>

wpf-rich-text-editor-customize-context-menu/CS/WpfRichEditorMenuCustomization/MainWindow.xaml#L17

xml
<dxb:InsertAction Index="4">
    <dxb:BarItemSeparator />
</dxb:InsertAction>

wpf-pivot-grid-create-context-menu-for-field-values/CS/WpfPivotGrid_CustomMenu/MainWindow.xaml#L46

xml
<dxpg:PivotGridControl.HeaderAreaMenuCustomizations >
    <dxb:BarItemSeparator/>
    <dxb:BarSubItem Content="Totals">

wpf-diagram-mdi/CS/MainWindow.xaml#L83

xml
Glyph="{dx:DXImage 'SvgImages/Outlook Inspired/SaveAs.svg'}" />
<dxb:BarItemSeparator dxdiag:DiagramDesignerControl.BarItemName="{x:Static dxdiag:DefaultBarItemNames.MenuSeparator}" Style="{StaticResource {dxdiagt:DiagramDesignerControlThemeKeys ResourceKey=MenuSeparatorStyle}}" />
<dxb:BarButtonItem dxdiag:DiagramDesignerControl.BarItemName="{x:Static dxdiag:DefaultBarItemNames.ShowPrintPreview}" Style="{StaticResource {dxdiagt:DesignerControlCommandsThemeKeys ResourceKey=ShowPrintPreviewCommandItemStyle}}" />

Implements

IControllerAction

Inheritance

Object DispatcherObject DependencyObject ContentElement FrameworkContentElement BarItem BarItemSeparator

See Also

BarItemSeparator Members

DevExpress.Xpf.Bars Namespace