Back to Devexpress

UICommand.Glyph Property

corelibraries-devexpress-dot-mvvm-dot-uicommand-a478546c.md

latest2.3 KB
Original Source

UICommand.Glyph Property

Gets or sets the image displayed in the dialog button.

Namespace : DevExpress.Mvvm

Assembly : DevExpress.Mvvm.v25.2.dll

NuGet Packages : DevExpress.Mvvm, DevExpress.Win.Navigation

Declaration

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

Property Value

TypeDescription
Object

The image displayed in the dialog button.

|

Remarks

The Glyph property contains an inner converter that allows you to use various techniques to assign an image to this property. For example, you can specify a string path, Uri, stream, byte array, ImageSource, or SvgImage.

csharp
Glyph = "Apply.png",
Glyph = "pack://application:,,,/DevExpress.Images.v22.2;component/SvgImages/Icon Builder/Actions_Check.svg",
Glyph = new System.Uri("pack://application:,,,/DevExpress.Images.v22.2;component/SvgImages/Icon Builder/Actions_Check.svg"),
Glyph = new BitmapImage(new System.Uri("pack://application:,,,/Apply.png")),
Glyph = DevExpress.Utils.Svg.SvgImage.FromFile("Apply.svg"),
vb
.Glyph = "Apply.png",
.Glyph = "pack://application:,,,/DevExpress.Images.v22.2;component/SvgImages/Icon Builder/Actions_Check.svg",
.Glyph = New System.Uri("pack://application:,,,/DevExpress.Images.v22.2;component/SvgImages/Icon Builder/Actions_Check.svg"),
.Glyph = New BitmapImage(New System.Uri("pack://application:,,,/Apply.png")),
.Glyph = DevExpress.Utils.Svg.SvgImage.FromFile("Apply.svg")

See Also

UICommand Class

UICommand Members

DevExpress.Mvvm Namespace