BarItem.Glyph Property
Gets or sets the item's small image. This is a dependency property.
Namespace: DevExpress.Xpf.Bars
Assembly: DevExpress.Xpf.Core.v14.2.dll
#Declaration
#Property Value
Type | Description |
---|---|
Image |
An Image |
#Remarks
You can assign a small and large image to a bar item via the BarItem.Glyph and BarItem.LargeGlyph properties, respectively. If both large and small images are assigned, the bar item's links will display either image, according to the settings provided by bar objects (a bar item, bar, menu and bar manager). By default, if a bar item link is displayed within a toolbar, the large image will be displayed. If a bar item link is displayed within sub-menus, small images will be used.
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 also possible to override this setting for individual bar items via the BarItem.GlyphSize property.
If the GlyphSize setting is set to Small, but a small image is not assigned to the Glyph property, no image is displayed. This is also the case when the GlyphSize setting is set to Large, but no large image is assigned to the BarItem.LargeGlyph property.