Skip to main content

ContextItemCollectionOptions.AllowGlyphSkinning Property

Enables or disables glyph skinning for context items that display images.

Namespace: DevExpress.Utils

Assembly: DevExpress.Utils.v23.2.dll

NuGet Packages: DevExpress.Utils, DevExpress.Wpf.Core

Declaration

[DefaultValue(false)]
[XtraSerializableProperty]
public bool AllowGlyphSkinning { get; set; }

Property Value

Type Default Description
Boolean false

true, to match a context items‘s raster image color to the item’s text color; false to retain the original raster image color.

Property Paths

You can access this nested property as listed below:

Object Type Path to AllowGlyphSkinning
CameraControl
.ContextButtonOptions .AllowGlyphSkinning
CalendarControlBase
.ContextButtonOptions .AllowGlyphSkinning
ImageSlider
.ContextButtonOptions .AllowGlyphSkinning
RepositoryItemPictureEdit
.ContextButtonOptions .AllowGlyphSkinning
SvgImageBox
.ContextButtonOptions .AllowGlyphSkinning
TileControl
.ContextButtonOptions .AllowGlyphSkinning
TileView
.ContextButtonOptions .AllowGlyphSkinning

Remarks

You can use the the ImageOptionsCollection property to assign a raster image to a context item. The AllowGlyphSkinning property’s true setting can match the raster image color to the text color for consistency.

pictureEdit1.Properties.ContextButtonOptions.AllowGlyphSkinning = true;

The image below demonstrates the result.

AllowGlyphSkinning

Alternatively, you can set the AllowGlyphSkinning value in a control’s Properties window.

PropertiesAllowGlyphSkinning

See Also