Skip to main content
A newer version of this page is available. .

SimpleButton.AllowGlyphSkinning Property

Gets or sets whether the current SimpleButton icon should be painted with the button’s fore color.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v21.2.dll

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

Declaration

[Browsable(false)]
[DefaultValue(DefaultBoolean.Default)]
[DXCategory("Appearance")]
[EditorBrowsable(EditorBrowsableState.Never)]
public DefaultBoolean AllowGlyphSkinning { get; set; }

Property Value

Type Default Description
DefaultBoolean Default

A DefaultBoolean enumerator value that specifies whether the current SimpleButton‘s icon should be painted with the button’s fore color.

Available values:

Name Description
True

true. DefaultBoolean.True has a constant value of 0, while the standard true value corresponds to a value of 1. In Visual Basic, do not use implicit conversion of Boolean values to DefaultBoolean, and vice versa, as the conversion may produce incorrect results.

False

false. DefaultBoolean.False has a constant value of 1, while the standard false value corresponds to a value of 0. In Visual Basic, do not use implicit conversion of Boolean values to DefaultBoolean, and vice versa, as the conversion may produce incorrect results.

Default

The default behavior determined by the control’s logic.

Remarks

A SimpleButton icon can be painted in the same color as the SimpleButton.Text. To do so, set the AllowGlyphSkinning property to DefaultBoolean.True. This feature is called Glyph Skinning and allows you to build monochrome UIs for your applications. The figure below illustrates two buttons with the same icons and appearance settings. The left button’s AllowGlyphSkinning property equals DefaultBoolean.True.

SimpleButton - AllowGLyphSKinning

If you build a monochrome UI and use the Glyph Skinning feature, we recommend the gray-scale icons from the DevExpress Image Gallery for the best visual results.

SimpleButtons are not the only controls that support this feature. See the Glyph Skinning topic for the complete control list.

The AllowGlyphSkinning property is equivalent to the ImageOptions.AllowGlyphSkinning property (see SimpleButton.ImageOptions).

See Also