wpf-devexpress-dot-xpf-dot-bars-dot-galleryitem-1f5cff47.md
Gets or sets the item’s image.
This is a dependency property.
Namespace : DevExpress.Xpf.Bars
Assembly : DevExpress.Xpf.Core.v25.2.dll
NuGet Package : DevExpress.Wpf.Core
public ImageSource Glyph { get; set; }
Public Property Glyph As ImageSource
| Type | Description |
|---|---|
| ImageSource |
An ImageSource value that specifies the item’s image.
|
Use the Glyph property to assign images to gallery items.
The following code snippets (auto-collected from DevExpress Examples) contain references to the Glyph property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
create-wpf-gallery-control/CS/GalleryControl_Ex/MainWindow.xaml#L29
<dxb:GalleryItemGroup.Items>
<dxb:GalleryItem Caption="Schedule" Description="Show schedule" Glyph="pack://application:,,,/Images/address-16x16.png"/>
<dxb:GalleryItem Caption="Roles" Description="Assign roles" Glyph="pack://application:,,,/Images/role-16x16.png"/>
wpf-create-a-ribboncontrol/CS/RibbonControl_Ex/MainWindow.xaml.cs#L70
GalleryItem item = new GalleryItem();
item.Glyph = image;
item.Caption = fontFamily.ToString();
wpf-create-a-ribboncontrol/VB/RibbonControl_Ex/MainWindow.xaml.vb#L63
Dim item As GalleryItem = New GalleryItem()
item.Glyph = image
item.Caption = fontFamily.ToString()
See Also