Gets or sets the item's small image. This is a dependency property.
An ImageSource object that specifies the item's small image.
You can assign glyphs to bar items with the following properties:
If both large and small images are assigned, the bar item's links displays an image that matches the settings provided by bar objects (a bar item, bar, menu, and bar manager). For example, if a bar item link is displayed within a toolbar, the large image is displayed. If a bar item link is displayed within sub-menus, small images are used. The BarItem.MediumGlyph is used in the Ribbon's Simplified Mode.
Use the BarManager.ToolbarGlyphSize and BarManager.MenuGlyphSize properties to specify the size of images for bar item links displayed in bars and menus, respectively. You can override this setting for individual bars, popup menus, submenus, and link containers via the Bar.GlyphSize, PopupMenu.GlyphSize, BarSubItem.SubItemsGlyphSize and BarLinkContainerItem.SubItemsGlyphSize properties, respectively. It's possible to override this setting for individual bar items via the BarItem.GlyphSize property.
If the GlyphSize setting is set to Small (or Large), but a small (or large, accordingly) image is not assigned to the Glyph (or LargeGlyph)property, no image is displayed.
Control images can be automatically substituted for other images based on the app context (the system DPI setting, the application UI culture, paint theme and touch mode availability). See the following topic to learn more: Automatically Choosing Images Based on App Context.
This example shows how to create bar items and associate them with a custom Format category.
The following image shows the result:
A complete sample project is available at https://github.com/DevExpress-Examples/how-to-create-bar-items-and-associate-them-with-categories-e1543.
Imports System Imports System.Collections.Generic Imports System.Configuration Imports System.Data Imports System.Linq Imports System.Windows Namespace WpfApplication3 ''' <summary> ''' Interaction logic for App.xaml ''' </summary> Partial Public Class App Inherits Application Private Sub OnAppStartup_UpdateThemeName(ByVal sender As Object, ByVal e As StartupEventArgs) DevExpress.Xpf.Core.ApplicationThemeHelper.UpdateApplicationThemeName() End Sub End Class End Namespace