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

BarItem.AllowGlyphSkinning Property

Gets or sets whether glyphs for this BarItem should be painted using the text foreground color.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v21.2.dll

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

Declaration

[Browsable(false)]
public virtual DefaultBoolean AllowGlyphSkinning { get; set; }

Property Value

Type Description
DefaultBoolean

A DefaultBoolean enumerator value specifying whether this BarItem should be painted using the text foreground 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

If the AllowGlyphSkinning property equals DefaultBoolean.False, item large and regular glyphs are painted as they are and the item foreground color will only be used to paint this item’s BarItem.Captions. Otherwise, if the AllowGlyphSkinning property equals DefaultBoolean.True, item glyphs are displayed in a hue dependent on the fore color of this item.

For the best visual results, we recommend using grayscale icons from our DevExpress Image Gallery.

Image Gallery - Grayscale Icons

An item’s AllowGlyphSkinning property overrides the global glyph skinning settings. To specify the global glyph skinning settings, use the BarManager.AllowGlyphSkinning property. This setting global setting is used for all BarItems whose AllowGlyphSkinning property equals DefaultBoolean.Default.

See the Bar and Ribbon Glyph Skinning topic to learn more.

See Also