# Displaying Glyphs | WPF Controls | DevExpress Documentation

You can display icons within bar items. Such icons are called glyphs. This topic explains how to display glyphs and configure their appearance, and contains the following sections.

- Specifying Glyphs
- Glyph Display Mode
- Glyphs Size
- Custom Glyph Size
- Hide and Display Glyphs in Popup Menus

Note

You can use the [DevExpress Image Picker](/WPF/120093/common-concepts/images/devexpress-image-gallery) to access a set of predefined icons.

## Specifying Glyphs

To specify a bar item’s glyph, use the [BarItem.Glyph](/WPF/DevExpress.Xpf.Bars.BarItem.Glyph) and [BarItem.LargeGlyph](/WPF/DevExpress.Xpf.Bars.BarItem.LargeGlyph) properties.
The resulting glyph depends on the available space.

The following example demonstrates a toolbar that displays large glyphs and a submenu that displays small glyphs.

- XAML

<section id="tabpanel_qzZ73+m2hw_tabid-xaml" role="tabpanel" data-tab="tabid-xaml">
<pre><code class="lang-xaml">&lt;Window ...
        xmlns:dxb=&quot;http://schemas.devexpress.com/winfx/2008/xaml/bars&quot;
        xmlns:dxc=&quot;http://schemas.devexpress.com/winfx/2008/xaml/core&quot; &gt;
    &lt;Grid&gt;
        &lt;Grid.RowDefinitions&gt;
            &lt;RowDefinition Height=&quot;Auto&quot;/&gt;
            &lt;RowDefinition Height=&quot;Auto&quot;/&gt;
        &lt;/Grid.RowDefinitions&gt;
        &lt;dxb:ToolBarControl Grid.Row=&quot;0&quot; VerticalAlignment=&quot;Top&quot;&gt;
            &lt;dxb:BarButtonItem Name=&quot;itemCut&quot; Content=&quot;Cut&quot; Glyph=&quot;{dxc:DXImage Image=Cut_16x16.png}&quot; LargeGlyph=&quot;{dxc:DXImage Image=Cut_32x32.png}&quot;/&gt;
            &lt;dxb:BarButtonItem Name=&quot;itemCopy&quot;  Content=&quot;Copy&quot; Glyph=&quot;{dxc:DXImage Image=Copy_16x16.png}&quot; LargeGlyph=&quot;{dxc:DXImage Image=Copy_32x32.png}&quot;/&gt;
            &lt;dxb:BarButtonItem Name=&quot;itemPaste&quot; Content=&quot;Paste&quot; Glyph=&quot;{dxc:DXImage Image=Paste_16x16.png}&quot; LargeGlyph=&quot;{dxc:DXImage Image=Paste_32x32.png}&quot;/&gt;
            &lt;dxb:BarSubItem Content=&quot;SubItem&quot; Glyph=&quot;{dxc:DXImage Image=Properties_16x16.png}&quot; LargeGlyph=&quot;{dxc:DXImage Image=Properties_32x32.png}&quot;&gt;
                &lt;dxb:BarButtonItemLink BarItemName=&quot;itemCut&quot;/&gt;
                &lt;dxb:BarButtonItemLink BarItemName=&quot;itemCopy&quot;/&gt;
                &lt;dxb:BarButtonItemLink BarItemName=&quot;itemPaste&quot;/&gt;
            &lt;/dxb:BarSubItem&gt;
        &lt;/dxb:ToolBarControl&gt;
    &lt;/Grid&gt;
&lt;/Window&gt;
</code></pre></section>

The following image demonstrates the result.

![Specifying Glyphs](/WPF/images/specifying-glyphs126793.png)

## Glyph Display Mode

You can specify the glyph visibility for individual bar items or entire toolbars and menus using the **BarItemDisplayMode** properties. The display mode specified for a child object overrides the display mode of a parent. The following table lists the properties that control the display mode of bar items. Properties that have the highest precedence are listed first.

| Property | Description |
| --- | --- |
| [BarItemLinkBase.BarItemDisplayMode](/WPF/DevExpress.Xpf.Bars.BarItemLinkBase.BarItemDisplayMode) | Specifies the glyph visibility for an individual bar item link represented by a [BarItemLink](/WPF/DevExpress.Xpf.Bars.BarItemLink) descendant. |
| [BarItem.BarItemDisplayMode](/WPF/DevExpress.Xpf.Bars.BarItem.BarItemDisplayMode) | Specifies the glyph visibility for an individual bar item represented by a [BarItem](/WPF/DevExpress.Xpf.Bars.BarItem) descendant. |
| [Bar.BarItemDisplayMode](/WPF/DevExpress.Xpf.Bars.Bar.BarItemDisplayMode) | Specifies the glyph visibility for all items within the[Bar](/WPF/DevExpress.Xpf.Bars.Bar) container. |
| [ToolBarControlBase.BarItemDisplayMode](/WPF/DevExpress.Xpf.Bars.ToolBarControlBase.BarItemDisplayMode) | Specifies glyph visibility for all items within a container represented by a [ToolBarControlBase](/WPF/DevExpress.Xpf.Bars.ToolBarControlBase) descendant. |
| [BarContainerControl.BarItemDisplayMode](/WPF/DevExpress.Xpf.Bars.BarContainerControl.BarItemDisplayMode) | Specifies the glyph visibility for all items within the [BarContainerControl](/WPF/DevExpress.Xpf.Bars.BarContainerControl). |

The **BarItemDisplayMode** property must be set to one of the [BarItemDisplayMode](/WPF/DevExpress.Xpf.Bars.BarItemDisplayMode) enumeration values. The following table lists the available options.

| **BarItemDisplayMode**<br><br>property value | Bar item appearance |
| --- | --- |
| **Default** | Bar items display a glyph within toolbars.<br><br><br>Bar items display both content and glyph within menus and ribbon. |
| **Content** | Bar items display content only. |
| **ContentAndGlyph** | Bar items display both content and glyph. |

Note

If the **BarItemDisplayMode** property is set for a container and an item within this container has the **Default** display mode, the container’s **BarItemDisplayMode** value is used for the item.

The following example demonstrates glyph visibility customizations and the **BarItemDisplayMode** property precedence.

- XAML

<section id="tabpanel_qzZ73+m2hw-1_tabid-xaml" role="tabpanel" data-tab="tabid-xaml">
<pre><code class="lang-xaml">&lt;Window ...
        xmlns:dxb=&quot;http://schemas.devexpress.com/winfx/2008/xaml/bars&quot;
        xmlns:dxc=&quot;http://schemas.devexpress.com/winfx/2008/xaml/core&quot;&gt;
    &lt;Grid&gt;
        &lt;Grid.RowDefinitions&gt;
            &lt;RowDefinition Height=&quot;Auto&quot;/&gt;
            &lt;RowDefinition Height=&quot;Auto&quot;/&gt;
        &lt;/Grid.RowDefinitions&gt;
        &lt;dxb:BarContainerControl Grid.Row=&quot;0&quot; BarItemDisplayMode=&quot;Default&quot;&gt;
            &lt;dxb:Bar&gt;
                &lt;!-- The first 3 items display a glyph only--&gt;
                &lt;dxb:BarButtonItem Name=&quot;itemCut&quot; Content=&quot;Cut&quot; Glyph=&quot;{dxc:DXImage Image=Cut_16x16.png}&quot; LargeGlyph=&quot;{dxc:DXImage Image=Cut_32x32.png}&quot;/&gt;
                &lt;dxb:BarButtonItem Name=&quot;itemCopy&quot;  Content=&quot;Copy&quot; Glyph=&quot;{dxc:DXImage Image=Copy_16x16.png}&quot; LargeGlyph=&quot;{dxc:DXImage Image=Copy_32x32.png}&quot;/&gt;
                &lt;dxb:BarButtonItem Name=&quot;itemPaste&quot; Content=&quot;Paste&quot; Glyph=&quot;{dxc:DXImage Image=Paste_16x16.png}&quot; LargeGlyph=&quot;{dxc:DXImage Image=Paste_32x32.png}&quot;/&gt;
                &lt;!-- The &quot;Cancel&quot; item displays both content and glyph --&gt;
                &lt;dxb:BarButtonItem Name=&quot;itemCancel&quot; Content=&quot;Cancel&quot; Glyph=&quot;{dxc:DXImage Image=Cancel_16x16.png}&quot; LargeGlyph=&quot;{dxc:DXImage Image=Cancel_32x32.png}&quot; BarItemDisplayMode=&quot;ContentAndGlyph&quot;/&gt;
            &lt;/dxb:Bar&gt;
            &lt;dxb:Bar BarItemDisplayMode=&quot;Default&quot;&gt;
                &lt;!-- The &quot;Edit&quot; bar item displays both content and glyph --&gt;
                &lt;dxb:BarSubItem Content=&quot;Edit&quot; Glyph=&quot;{dxc:DXImage Image=Properties_16x16.png}&quot; LargeGlyph=&quot;{dxc:DXImage Image=Properties_32x32.png}&quot; BarItemDisplayMode=&quot;ContentAndGlyph&quot;&gt;
                    &lt;!-- The first 3 items display content only --&gt;
                    &lt;dxb:BarButtonItemLink BarItemName=&quot;itemCut&quot; BarItemDisplayMode=&quot;Content&quot;/&gt;
                    &lt;dxb:BarButtonItemLink BarItemName=&quot;itemCopy&quot; BarItemDisplayMode=&quot;Content&quot;/&gt;
                    &lt;dxb:BarButtonItemLink BarItemName=&quot;itemPaste&quot; BarItemDisplayMode=&quot;Content&quot;/&gt;
                    &lt;!-- The &quot;Cancel&quot; item displays both content and glyph --&gt;
                    &lt;dxb:BarButtonItemLink BarItemName=&quot;itemCancel&quot;/&gt;
                &lt;/dxb:BarSubItem&gt;
            &lt;/dxb:Bar&gt;
        &lt;/dxb:BarContainerControl&gt;
    &lt;/Grid&gt;
&lt;/Window&gt;
</code></pre></section>

The following image demonstrates the result.

![Specifying Glyph Visibility](/WPF/images/specifying-glyph-visibility126815.png)

## Glyph Size

If you assign both small and large glyphs to a bar item, you can specify the glyph size explicitly.

The following table lists properties that allow you to specify the required glyph size for bar items and item containers.

| Property | Description |
| --- | --- |
| [BarItem.GlyphSize](/WPF/DevExpress.Xpf.Bars.BarItem.GlyphSize) | Specifies the glyph size for a specific bar item represented by an instance of [BarItem](/WPF/DevExpress.Xpf.Bars.BarItem) or its descendant. |
| [Bar.GlyphSize](/WPF/DevExpress.Xpf.Bars.Bar.GlyphSize) | Specifies the glyph size for all items within the [Bar](/WPF/DevExpress.Xpf.Bars.Bar) container. |
| [ToolBarControlBase.GlyphSize](/WPF/DevExpress.Xpf.Bars.ToolBarControlBase.GlyphSize) | Specifies the glyph size for all bar items within a container that is a [ToolBarControlBase](/WPF/DevExpress.Xpf.Bars.ToolBarControlBase) descendant. |
| [BarLinkContainerItem.SubItemsGlyphSize](/WPF/DevExpress.Xpf.Bars.BarLinkContainerItem.SubItemsGlyphSize) | Specifies the glyph size for all subitems within the [BarLinkContainerItem](/WPF/DevExpress.Xpf.Bars.BarLinkContainerItem) container and its descendants. |
| [BarSubItem.SubItemsGlyphSize](/WPF/DevExpress.Xpf.Bars.BarSubItem.SubItemsGlyphSize) | Specifies the glyph size for all bar items within the [BarSubItem](/WPF/DevExpress.Xpf.Bars.BarSubItem) container. |
| [BarManager.ToolbarGlyphSize](/WPF/DevExpress.Xpf.Bars.BarManager.ToolbarGlyphSize) | Specifies the glyph size for toolbar items within the [BarManager](/WPF/DevExpress.Xpf.Bars.BarManager) container. |
| [BarManager.MenuGlyphSize](/WPF/DevExpress.Xpf.Bars.BarManager.MenuGlyphSize) | Specifies the glyph size for menu items within the [BarManager](/WPF/DevExpress.Xpf.Bars.BarManager) container. |
| [BarItem.GlyphSize](/WPF/DevExpress.Xpf.Bars.BarItem.GlyphSize)<br><br><br>(via [RibbonGalleryBarItem](/WPF/DevExpress.Xpf.Ribbon.RibbonGalleryBarItem)**.GlyphSize**) | Specifies the glyph size for items within the [RibbonGalleryBarItem.DropDownMenuItems](/WPF/DevExpress.Xpf.Ribbon.RibbonGalleryBarItem.DropDownMenuItems) collection. |

The **GlyphSize** properties must be set to one of the [GlyphSize](/WPF/DevExpress.Xpf.Bars.GlyphSize) enumeration values. The following table lists the available options.

| **GlyphSize** property value | Resulting glyph |
| --- | --- |
| **Default** | In toolbars, bar items display large glyphs.<br><br><br>In menus, bar items display small glyphs. |
| **Large** | A bar item displays a glyph specified by the [BarItem.LargeGlyph](/WPF/DevExpress.Xpf.Bars.BarItem.LargeGlyph) property. |
| **Small** | A bar item displays a glyph specified by the [BarItem.Glyph](/WPF/DevExpress.Xpf.Bars.BarItem.Glyph) property. |
| **Custom** | The glyph size is specified by the [Size](https://learn.microsoft.com/dotnet/api/system.windows.size) value.<br><br><br>See Custom glyph size to learn more. |

Note

If the **GlyphSize** property is set for a container and an item within this container has the **Default** glyph size, the container’s **GlyphSize** value is used for the item.

The following example demonstrates the **GlyphSize** property precedence.

- XAML

<section id="tabpanel_qzZ73+m2hw-2_tabid-xaml" role="tabpanel" data-tab="tabid-xaml">
<pre><code class="lang-xaml">&lt;Window ...
        xmlns:dxb=&quot;http://schemas.devexpress.com/winfx/2008/xaml/bars&quot;
        xmlns:dxc=&quot;http://schemas.devexpress.com/winfx/2008/xaml/core&quot;&gt;
    &lt;Grid&gt;
        &lt;Grid.RowDefinitions&gt;
            &lt;RowDefinition Height=&quot;Auto&quot;/&gt;
            &lt;RowDefinition Height=&quot;Auto&quot;/&gt;
        &lt;/Grid.RowDefinitions&gt;
        &lt;dxb:BarContainerControl Grid.Row=&quot;0&quot;&gt;
            &lt;!-- Small size is specified for the items within the bar --&gt;
            &lt;dxb:Bar GlyphSize=&quot;Small&quot;&gt;
                &lt;dxb:BarButtonItem Name=&quot;itemCut&quot; Content=&quot;Cut&quot; Glyph=&quot;{dxc:DXImage Image=Cut_16x16.png}&quot; LargeGlyph=&quot;{dxc:DXImage Image=Cut_32x32.png}&quot; GlyphSize=&quot;Default&quot;/&gt;
                &lt;dxb:BarButtonItem Name=&quot;itemCopy&quot;  Content=&quot;Copy&quot; Glyph=&quot;{dxc:DXImage Image=Copy_16x16.png}&quot; LargeGlyph=&quot;{dxc:DXImage Image=Copy_32x32.png}&quot;/&gt;
                &lt;dxb:BarButtonItem Name=&quot;itemPaste&quot; Content=&quot;Paste&quot; Glyph=&quot;{dxc:DXImage Image=Paste_16x16.png}&quot; LargeGlyph=&quot;{dxc:DXImage Image=Paste_32x32.png}&quot;/&gt;
                &lt;!-- The &quot;Cancel&quot; bar item displays a large glyph --&gt;
                &lt;dxb:BarButtonItem Name=&quot;itemCancel&quot; Content=&quot;Cancel&quot;  Glyph=&quot;{dxc:DXImage Image=Cancel_16x16.png}&quot; LargeGlyph=&quot;{dxc:DXImage Image=Cancel_32x32.png}&quot; GlyphSize=&quot;Large&quot; /&gt;
            &lt;/dxb:Bar&gt;
            &lt;!-- Large size is specified for the items within the bar --&gt;
            &lt;dxb:Bar GlyphSize=&quot;Large&quot;&gt;
                &lt;!-- The &quot;Edit&quot; bar item displays a small glyph --&gt;
                &lt;dxb:BarSubItem Content=&quot;Edit&quot; Glyph=&quot;{dxc:DXImage Image=Properties_16x16.png}&quot; LargeGlyph=&quot;{dxc:DXImage Image=Properties_32x32.png}&quot; GlyphSize=&quot;Small&quot;&gt;
                    &lt;!-- The glyph size is specified by the corresponding bar items --&gt;
                    &lt;dxb:BarButtonItemLink BarItemName=&quot;itemCut&quot;/&gt;
                    &lt;dxb:BarButtonItemLink BarItemName=&quot;itemCopy&quot;/&gt;
                    &lt;dxb:BarButtonItemLink BarItemName=&quot;itemPaste&quot;/&gt;
                    &lt;dxb:BarButtonItemLink BarItemName=&quot;itemCancel&quot;/&gt;
                &lt;/dxb:BarSubItem&gt;
            &lt;/dxb:Bar&gt;
        &lt;/dxb:BarContainerControl&gt;
    &lt;/Grid&gt;
&lt;/Window&gt;
</code></pre></section>

The following image demonstrates the result.

![Specifying glyph size](/WPF/images/specifying-glyph-size126909.png)

## Custom Glyph Size

If the **GlyphSize** property is set to **Custom**, you can set the exact width and height of the bar item’s glyph. To specify a custom glyph size, assign a [Size](https://learn.microsoft.com/dotnet/api/system.windows.size) value to one of the **CustomGlyphSize** properties.

The following table lists properties that allow you to specify the custom glyph size. Properties that have the highest precedence are listed first.

| Property | Description |
| --- | --- |
| [BarItemLinkBase.CustomGlyphSize](/WPF/DevExpress.Xpf.Bars.BarItemLinkBase.CustomGlyphSize) | Specifies the exact width and height of the [BarItemLink](/WPF/DevExpress.Xpf.Bars.BarItemLink)‘s glyph. |
| [BarItem.CustomGlyphSize](/WPF/DevExpress.Xpf.Bars.BarItem.CustomGlyphSize) | Specifies the exact width and height of the [BarItem](/WPF/DevExpress.Xpf.Bars.BarItem)‘s glyph. |
| [ILinksHolder.CustomItemsGlyphSize](/WPF/DevExpress.Xpf.Bars.ILinksHolder.CustomItemsGlyphSize) | Specifies the exact width and height of the glyph for all bar items within a container that is the [ILinksHolder](/WPF/DevExpress.Xpf.Bars.ILinksHolder) implementation. |
| [BarItemLinkHolderBase.CustomItemsGlyphSize](/WPF/DevExpress.Xpf.Bars.BarItemLinkHolderBase.CustomItemsGlyphSize) | Specifies the exact width and height of the glyph for all bar items within a container that is a [BarItemLinkHolderBase](/WPF/DevExpress.Xpf.Bars.BarItemLinkHolderBase) descendant. |
| [BarLinkContainerItem.SubItemsCustomGlyphSize](/WPF/DevExpress.Xpf.Bars.BarLinkContainerItem.SubItemsCustomGlyphSize) | Specifies the exact width and height of the glyph for all bar items within the [BarLinkContainerItem](/WPF/DevExpress.Xpf.Bars.BarLinkContainerItem) container and its descendants. |
| [BarSubItem.SubItemsCustomGlyphSize](/WPF/DevExpress.Xpf.Bars.BarSubItem.SubItemsCustomGlyphSize) | Specifies the exact width and height of the glyph for all bar items within the [BarSubItem](/WPF/DevExpress.Xpf.Bars.BarSubItem) container. |
| [BarItem.CustomGlyphSize](/WPF/DevExpress.Xpf.Bars.BarItem.CustomGlyphSize)<br><br><br>(via [RibbonGalleryBarItem](/WPF/DevExpress.Xpf.Ribbon.RibbonGalleryBarItem)**.CustomGlyphSize**) | Specifies the exact width and height of the glyph for items within the [RibbonGalleryBarItem.DropDownMenuItems](/WPF/DevExpress.Xpf.Ribbon.RibbonGalleryBarItem.DropDownMenuItems) collection. |

The following example illustrates the bar item glyph size customization capabilities.

![Bar Items Glyph Size Customization](/WPF/images/bar-items-glyph-size-customization125999.png)

- XAML

<section id="tabpanel_ggn3zQUGOL_tabid-xaml" role="tabpanel" data-tab="tabid-xaml">
<pre><code class="lang-xaml">&lt;Window
        xmlns=&quot;http://schemas.microsoft.com/winfx/2006/xaml/presentation&quot;
        xmlns:x=&quot;http://schemas.microsoft.com/winfx/2006/xaml&quot;
        xmlns:d=&quot;http://schemas.microsoft.com/expression/blend/2008&quot;
        xmlns:mc=&quot;http://schemas.openxmlformats.org/markup-compatibility/2006&quot;
        xmlns:dxb=&quot;http://schemas.devexpress.com/winfx/2008/xaml/bars&quot;
        xmlns:dxc=&quot;http://schemas.devexpress.com/winfx/2008/xaml/core&quot;
        x:Class=&quot;CustomGlyphSizeTestApp.MainWindow&quot;
        mc:Ignorable=&quot;d&quot;
        Title=&quot;Custom Glyph Size&quot; Height=&quot;350&quot; Width=&quot;525&quot;&gt;
    &lt;Grid&gt;
        &lt;dxb:BarManager VerticalAlignment=&quot;Top&quot;&gt;
            &lt;dxb:BarManager.Bars&gt;
                &lt;dxb:Bar&gt;
                     &lt;!--BarSubItem.SubItemsCustomGlyphSize property specifies the glyph size for its items. --&gt; 
                    &lt;dxb:BarSubItem x:Name=&quot;barFile&quot; Content=&quot;File&quot; 
                                    SubItemsCustomGlyphSize=&quot;24,24&quot; SubItemsGlyphSize=&quot;Custom&quot; &gt;
                        &lt;!-- The item&#39;s glyph size (24x24) is specified by the container&#39;s SubItemsCustomGlyphSize property. --&gt;
                        &lt;dxb:BarButtonItem x:Name=&quot;barNew&quot; Content=&quot;New&quot; Glyph=&quot;{dxc:DXImage Image=New_32x32.png}&quot; 
                                           BarItemDisplayMode=&quot;ContentAndGlyph&quot; GlyphSize=&quot;Custom&quot;/&gt;
                        &lt;!-- The BarButtonItem.CustomGlyphSize property has higher precedence than the container&#39;s SubItemsCustomGlyphSize property. --&gt;
                        &lt;!-- The item&#39;s size is 16x16. --&gt;
                        &lt;dxb:BarButtonItem x:Name=&quot;barOpen&quot; Content=&quot;Open&quot;  Glyph=&quot;{dxc:DXImage Image=Open_32x32.png}&quot;  
                                           BarItemDisplayMode=&quot;ContentAndGlyph&quot; GlyphSize=&quot;Custom&quot; CustomGlyphSize=&quot;16,16&quot;/&gt;
                    &lt;/dxb:BarSubItem&gt;
                &lt;/dxb:Bar&gt;
                &lt;dxb:Bar&gt;
                     &lt;!-- The BarButtonItemLink.CustomGlyphSize property has the highest precedence. --&gt; 
                    &lt;dxb:BarButtonItemLink BarItemName=&quot;barOpen&quot; CustomGlyphSize=&quot;24,24&quot;/&gt;
                    &lt;dxb:BarButtonItemLink BarItemName=&quot;barNew&quot; CustomGlyphSize=&quot;12,12&quot;/&gt;
                &lt;/dxb:Bar&gt;
            &lt;/dxb:BarManager.Bars&gt;
        &lt;/dxb:BarManager&gt;
    &lt;/Grid&gt;
&lt;/Window&gt;
</code></pre></section>

## Hide and Display Glyphs in Popup Menus

Use the [BarManager.ShowGlyphsInPopupMenus](/WPF/DevExpress.Xpf.Bars.BarManager.ShowGlyphsInPopupMenus) attached property to display or hide the popup bar item’s glyph.

You can apply the [BarManager.ShowGlyphsInPopupMenus](/WPF/DevExpress.Xpf.Bars.BarManager.ShowGlyphsInPopupMenus) attached property for the following items:

- Bar containers: [BarContainerControl](/WPF/DevExpress.Xpf.Bars.BarContainerControl), [ToolBarControl](/WPF/DevExpress.Xpf.Bars.ToolBarControl), [MainMenuControl](/WPF/DevExpress.Xpf.Bars.MainMenuControl), [StatusBarControl](/WPF/DevExpress.Xpf.Bars.StatusBarControl).
- Nested menu owners: [BarSubItem](/WPF/DevExpress.Xpf.Bars.BarSubItem), [BarSplitButtonItem](/WPF/DevExpress.Xpf.Bars.BarSplitButtonItem), [BarSplitCheckItem](/WPF/DevExpress.Xpf.Bars.BarSplitCheckItem). 

      When applied the property to the item, elements in nested menus will show/hide glyphs in accordance with the property value.

Note

Applying the [BarManager.ShowGlyphsInPopupMenus](/WPF/DevExpress.Xpf.Bars.BarManager.ShowGlyphsInPopupMenus) attached property to individual items in a popup menu does not cause any changes.

When setting the property on [BarSplitButtonItem](/WPF/DevExpress.Xpf.Bars.BarSplitButtonItem) and on the nested [PopupMenu](/WPF/DevExpress.Xpf.Bars.PopupMenu), the value set on the popup menu has the higher priority.

The [BarManager.ShowGlyphsInPopupMenus](/WPF/DevExpress.Xpf.Bars.BarManager.ShowGlyphsInPopupMenus) attached property value is not taken into account in the following cases.

- Showing items in the radial menu.
- Showing items horizontally in the simple popup menu (using the [BarItemMenuHeader](/WPF/DevExpress.Xpf.Bars.BarItemMenuHeader) with the **Orientation** property set to **Horizontal**).

Tip

You can use the [BarManager.ShowGlyphsInPopupMenus](/WPF/DevExpress.Xpf.Bars.BarManager.ShowGlyphsInPopupMenus) property to hide the space reserved for the menu item glyphs when the items’ glyphs are not specified.

![Bars_ShowGlyphsInPopupMenus](/WPF/images/bars_showglyphsinpopupmenus133364.png)

The following example demonstrates the [BarManager.ShowGlyphsInPopupMenus](/WPF/DevExpress.Xpf.Bars.BarManager.ShowGlyphsInPopupMenus) property set for a [BarSubItem](/WPF/DevExpress.Xpf.Bars.BarSubItem) object.

- XAML

<section id="tabpanel_qzZ73+m2hw-3_tabid-xaml" role="tabpanel" data-tab="tabid-xaml">
<pre><code class="lang-xaml">&lt;Window ...
        xmlns:dxc=&quot;http://schemas.devexpress.com/winfx/2008/xaml/core&quot;
        xmlns:dxb=&quot;http://schemas.devexpress.com/winfx/2008/xaml/bars&quot; x:Class=&quot;barmanager.MainWindow&quot;&gt;
    &lt;Grid&gt;
        &lt;dxb:BarManager CreateStandardLayout=&quot;True&quot; Margin=&quot;12&quot; Name=&quot;barManager1&quot;&gt;
            &lt;dxb:BarManager.Items&gt;
                &lt;dxb:BarSubItem dxb:BarManager.ShowGlyphsInPopupMenus=&quot;False&quot; Content=&quot;Edit&quot; x:Name=&quot;subMenu1&quot;  Glyph=&quot;{dxc:DXImage Image=Edit_16x16.png}&quot;&gt;
                    &lt;dxb:BarButtonItem x:Name=&quot;itemCut&quot; Content=&quot;Cut&quot; Glyph=&quot;{dxc:DXImage Image=Cut_16x16.png}&quot;/&gt;
                    &lt;dxb:BarButtonItem x:Name=&quot;itemCopy&quot; Content=&quot;Copy&quot; Glyph=&quot;{dxc:DXImage Image=Copy_16x16.png}&quot;/&gt;
                    &lt;dxb:BarButtonItem x:Name=&quot;itemPaste&quot; Content=&quot;Paste&quot; Glyph=&quot;{dxc:DXImage Image=Paste_16x16.png}&quot;  /&gt;
                &lt;/dxb:BarSubItem&gt;
            &lt;/dxb:BarManager.Items&gt;
            &lt;dxb:BarManager.Bars&gt;
                &lt;dxb:Bar x:Name=&quot;bar1&quot; Caption=&quot;Bar 1&quot;&gt;
                    &lt;dxb:Bar.DockInfo&gt;
                        &lt;dxb:BarDockInfo ContainerType=&quot;Top&quot; /&gt;
                    &lt;/dxb:Bar.DockInfo&gt;
                    &lt;dxb:Bar.ItemLinks&gt;
                        &lt;dxb:BarSubItemLink BarItemName=&quot;subMenu1&quot; /&gt;
                        &lt;dxb:BarButtonItemLink BarItemName=&quot;itemCut&quot;/&gt;
                        &lt;dxb:BarButtonItemLink BarItemName=&quot;itemCopy&quot;/&gt;
                        &lt;dxb:BarButtonItemLink BarItemName=&quot;itemPaste&quot;/&gt;
                    &lt;/dxb:Bar.ItemLinks&gt;
                &lt;/dxb:Bar&gt;
            &lt;/dxb:BarManager.Bars&gt;
        &lt;/dxb:BarManager&gt;
    &lt;/Grid&gt;
&lt;/Window&gt;
</code></pre></section>