Back to Devexpress

SimpleButton.Glyph Property

wpf-devexpress-dot-xpf-dot-core-dot-simplebutton.md

latest2.3 KB
Original Source

SimpleButton.Glyph Property

Gets or sets the image displayed within the button. This is a dependency property.

Namespace : DevExpress.Xpf.Core

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

A System.Windows.Media.ImageSource object that specifies the image displayed within the button.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference 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.

wpf-imageedit-edit-images-in-separate-window/CS/ImageEditToEditModeBehavior/EditImageWindow.xaml#L26

xml
<dx:SimpleButton Command="{DXBinding '@e(editBehavior).UndoCommand'}"
                 Glyph="{dx:DXImage 'SvgImages/Icon Builder/Actions_Undo.svg'}"
                 ToolTip="Undo"/>

See Also

GlyphHeight

GlyphWidth

GlyphAlignment

GlyphToContentOffset

SimpleButton Class

SimpleButton Members

DevExpress.Xpf.Core Namespace