Back to Devexpress

NavElement.AllowGlyphSkinning Property

windowsforms-devexpress-dot-xtranavbar-dot-navelement-46fa96ab.md

latest3.4 KB
Original Source

NavElement.AllowGlyphSkinning Property

Use the AllowGlyphSkinning option accessible in NavElement.ImageOptions to specify whether the current NavElement‘s icon should be painted in this item’s foreground color.

Namespace : DevExpress.XtraNavBar

Assembly : DevExpress.XtraNavBar.v25.2.dll

NuGet Package : DevExpress.Win

Declaration

csharp
[Browsable(false)]
[DefaultValue(DefaultBoolean.Default)]
[EditorBrowsable(EditorBrowsableState.Never)]
[XtraSerializableProperty]
public DefaultBoolean AllowGlyphSkinning { get; set; }
vb
<Browsable(False)>
<EditorBrowsable(EditorBrowsableState.Never)>
<DefaultValue(DefaultBoolean.Default)>
<XtraSerializableProperty>
Public Property AllowGlyphSkinning As DefaultBoolean

Property Value

TypeDefaultDescription
DefaultBooleanDefault

true if the current NavElement‘s icon should be painted in this item’s foreground color; otherwise, false.

|

Available values:

NameDescriptionReturn Value
True

The value is true.

|

0

| | False |

The value is false.

|

1

| | Default |

The value is specified by a global option or a higher-level object.

|

2

|

Remarks

NavBarControl supports the Glyph Skinning feature that helps you to build monochrome interfaces. NavBarControl items (NavBarItems and NavBarGroups) can paint their icons in the same color as their captions. To enable the Glyph Skinning feature for the entire control, set the NavBarControl.AllowGlyphSkinning property to true. You can also override this setting for individual items via the AllowGlyphSkinning property. The figure below illustrates a NavBarControl with the Glyph Skinning feature enabled.

For best visual results, we recommend using gray-scale icons from the DevExpress Image Gallery.

NavBarControl is not the only control that supports this feature. See the Glyph Skinning topic for the complete controls list.

See Also

AllowGlyphSkinning

Glyph Skinning

NavElement Class

NavElement Members

DevExpress.XtraNavBar Namespace