# Items and Links | WPF Controls | DevExpress Documentation

## Overview

**Bar items** and **bar item links** are objects that represent the contents of [Bars](/WPF/6194/controls-and-libraries/ribbon-bars-and-menu/bars), [Ribbon](/WPF/7895/controls-and-libraries/ribbon-bars-and-menu/ribbon) and [Menus](/WPF/115388/controls-and-libraries/ribbon-bars-and-menu/menus). The following image demonstrates a toolbar that contains various **bar items**.

![Toolbar](/WPF/images/baritems-common127616.png)

**Bar items** are [BarItem](/WPF/DevExpress.Xpf.Bars.BarItem) class descendants. They can represent buttons, editors, static text, ribbon galleries and item containers.

**Bar item links** represent **bar items** that are defined in another location.

The following example demonstrates a *Paste* [BarButtonItem](/WPF/DevExpress.Xpf.Bars.BarButtonItem) defined in a toolbar. The *Edit* menu contains a [BarButtonItemLink](/WPF/DevExpress.Xpf.Bars.BarButtonItemLink) object that references the toolbar button.

![BarItemLinks Common](/WPF/images/baritemlinks-common127617.png)

- XAML

<section id="tabpanel_hm4rAo52BG_tabid-xaml" role="tabpanel" data-tab="tabid-xaml">
<pre><code class="lang-xaml">&lt;DockPanel&gt;
    &lt;dxb:MainMenuControl Caption=&quot;Main Menu&quot; DockPanel.Dock=&quot;Top&quot;&gt;
            &lt;!-- Represents the &quot;Edit&quot; menu --&gt;
            &lt;dxb:BarSubItem Name=&quot;bsEdit&quot; Content=&quot;Edit&quot;&gt;
                &lt;!-- BarButtonItemLink references the &quot;bPaste&quot; bar item --&gt;
                &lt;dxb:BarButtonItemLink BarItemName=&quot;bPaste&quot;/&gt;
                &lt;!-- ... --&gt;
            &lt;/dxb:BarSubItem&gt;
        &lt;/dxb:MainMenuControl&gt;

        &lt;!-- Represents the toolbar --&gt;
        &lt;dxb:ToolBarControl DockPanel.Dock=&quot;Top&quot;&gt;
            &lt;!-- Represents the &quot;Paste&quot; button within the toolbar. --&gt;
            &lt;dxb:BarButtonItem Name=&quot;bPaste&quot; Content=&quot;Paste&quot; Glyph=&quot;{dx:DXImage Image=Paste_16x16.png}&quot; 
                               KeyGesture=&quot;Ctrl+V&quot; /&gt;
            &lt;!-- ... --&gt;
        &lt;/dxb:ToolBarControl&gt;
        &lt;!-- ... --&gt;
&lt;/DockPanel&gt;
</code></pre></section>

Note

For the complete description of all **bar items**, see [The List of Bar Items and Links](/WPF/6646/controls-and-libraries/ribbon-bars-and-menu/common-concepts/the-list-of-bar-items-and-links)

## Further Reading

To learn more about **bar items** and **bar item links**, see the following topics.

- [Populating Bars](/WPF/115357/controls-and-libraries/ribbon-bars-and-menu/bars/populating-bars)

      Describes how to use **bar items** and **bar item links** within [Bars](/WPF/6194/controls-and-libraries/ribbon-bars-and-menu/bars).
- [Populating Ribbon](/WPF/7983/controls-and-libraries/ribbon-bars-and-menu/ribbon/populating-ribbon)

      Describes how to use **bar items** and **bar item links** within [Ribbon](/WPF/7895/controls-and-libraries/ribbon-bars-and-menu/ribbon).

See Also

[The List of Bar Items and Links](/WPF/6646/controls-and-libraries/ribbon-bars-and-menu/common-concepts/the-list-of-bar-items-and-links)