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.v20.1.dll


public GlyphKind GlyphKind { get; set; }
Public Property GlyphKind As GlyphKind

Property Value

Type Description

A GlyphKind enumeration value that specifies the image type.


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
GlyphKind.Custom no
GlyphKind.User yes
See Also