Back to Devexpress

GalleryItem.Glyph Property

wpf-devexpress-dot-xpf-dot-bars-dot-galleryitem-1f5cff47.md

latest2.9 KB
Original Source

GalleryItem.Glyph Property

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

Declaration

csharp
public ImageSource Glyph { get; set; }
vb
Public Property Glyph As ImageSource

Property Value

TypeDescription
ImageSource

An ImageSource value that specifies the item’s image.

|

Remarks

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

xml
<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

csharp
GalleryItem item = new GalleryItem();
item.Glyph = image;
item.Caption = fontFamily.ToString();

wpf-create-a-ribboncontrol/VB/RibbonControl_Ex/MainWindow.xaml.vb#L63

vb
Dim item As GalleryItem = New GalleryItem()
item.Glyph = image
item.Caption = fontFamily.ToString()

See Also

HoverGlyph

GalleryItem Class

GalleryItem Members

DevExpress.Xpf.Bars Namespace