Skip to content

DevExpress-Examples/wpf-bars-visually-separate-bar-items

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WPF Bars – Visually Group Bar Items with Separators

This example uses the BarItemLinkSeparator to visually organize bar items in a ToolBarControl.

Group Bar Items with Separators

Use BarItemLinkSeparator when you want to:

  • Group related commands visually to improve toolbar clarity.
  • Separate logical blocks of actions (for example, Undo/Redo and Copy/Paste) without introducing new containers.
  • Enhance the usability of complex toolbars.

Implementation Details

Create Toolbar

Define a ToolBarControl inside a BarContainerControl with five command buttons:

<dxb:BarContainerControl Grid.Row="0">
    <dxb:ToolBarControl Caption="Main Toolbar">
        <dxb:BarButtonItem Content="Undo" Glyph="{dx:DXImage Image=undo16x16.png}" />
        <dxb:BarButtonItem Content="Redo" Glyph="{dx:DXImage Image=redo16x16.png}" />
        <dxb:BarItemLinkSeparator />
        <dxb:BarButtonItem Content="Copy" Glyph="{dx:DXImage Image=copy16x16.png}" />
        <dxb:BarButtonItem Content="Paste" Glyph="{dx:DXImage Image=paste16x16.png}" />
    </dxb:ToolBarControl>
</dxb:BarContainerControl>

Group Related Commands

The BarItemLinkSeparator adds a visual break between Undo/Redo and Copy/Paste groups. Separators allow users to quickly distinguish between different command categories.

Files to Review

Documentation

More Examples

Does this example address your development requirements/objectives?

(you will be redirected to DevExpress.com to submit your response)

About

Adds a BarItemLinkSeparator to divide bar item links into logical groups.

Topics

Resources

License

Stars

Watchers

Forks

Contributors 5