ButtonInfo.GlyphKind Property
Gets or sets the type of the button’s image. This is a dependency property.
Namespace: DevExpress.Xpf.Editors
Assembly: DevExpress.Xpf.Core.v24.2.dll
NuGet Package: DevExpress.Wpf.Core
#Declaration
#Property Value
Type | Description |
---|---|
Glyph |
A Glyph |
Available values:
Name | Description |
---|---|
None |
|
User |
|
Custom |
|
Drop |
|
Regular |
|
Right |
|
Left |
|
Up |
|
Down |
|
Cancel |
|
Apply |
|
Plus |
|
Minus |
|
Redo |
|
Undo |
|
Refresh |
|
Search |
|
Next |
|
Prev |
|
Last |
|
First |
|
Edit |
|
#Remarks
A button can display a predefined image, or a custom image or content specified by the ButtonInfo.Content property. A custom image can be displayed within a button if the GlyphKind property is set to GlyphKind.Custom or GlyphKind.User. The difference between Custom and User, is in the margins. If the GlyphKind property is set to User, the content is displayed with margins. If the GlyphKind property is set to Custom, the content is displayed without margins. In this instance, you should define the ButtonInfo.ContentTemplate to specify margins.
Value | Appearance | Margins |
---|---|---|
Glyph |
![]() |
![]() |
Glyph |
![]() |
![]() |
#Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the GlyphKind 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.