Glyph Skinning
- 2 minutes to read
The Glyph Skinning feature allows you to paint icons within DevExpress WinForms UI controls according to a control’s foreground color (or a background color for badges), which is typically determined by the currently applied skin. This feature can assist you in creating modern monochrome interfaces for your applications. All you need to do is follow two simple steps.
- Choose a gray-scale icon from the DevExpress Image Gallery or use your own monochrome icon for all desired UI elements.
- Set the AllowGlyphSkinning property of the required object (BarItem, RibbonControl, NavBarControl, etc.) to true.
After the AllowGlyphSkinning property is set to true, all icons gain a color hue, specified via the object’s foreground color. The image below illustrates a RibbonControl painted with the Glyph Skinning feature in different Skins.
Important
The Glyph Skinning feature is designed to be used with raster icons only. Vector icons are automatically colorized using skin palette colors.
Refer to the Bar and Ribbon Glyph Skinning topic for a detailed description of how to implement this feature for your BarManager or RibbonControl. To use Glyph Skinning in other controls that support this feature (e.g., a NavBarControl), follow the same steps and use the related AllowGlyphSkinning property. The table below lists all controls that support the Glyph Skinning feature and their AllowGlyphSkinning properties.
Library | Glyph Skinning can be applied to… | Property List |
---|---|---|
Ribbon, Menu and Docking | Accordion Control elements | |
BarHeaderItem.AllowGlyphSkinning RibbonControl.AllowGlyphSkinning | ||
Backstage items | ||
Dock Manager panels | ||
Application UI Manager documents | ||
Tile Nav Pane items | TileNavPane.AllowGlyphSkinning | |
Navigation Pane page headers | ||
Office Navigation Bar items (in Compact mode only) | ||
Tab Form pages | ||
WindowsUI Button Panel buttons | ||
Tabbed MDI Manager tabs | ||
Editors | Labels | |
ButtonEdit and other editors, whose repositories deriver from the RepositoryItemButtonEdit class | RepositoryItemButtonEdit.AllowGlyphSkinning | |
Buttons | ||
Tile Control and WindowsUI View tiles | ||
Tab Control tabs | ||
XtraGrid | Data Grid columns and bands | |
XtraLayout | Layout items and groups | OptionsView.AllowGlyphSkinning |
XtraNavBar | Navigation Bar elements | |
XtraPivotGrid | Pivot Grid icons | |
XtraTreeList | Tree List columns and nodes | |
XtraVerticalGrid | Vertical Grid rows and bands | |
Utils | Adorner UI Manager badges | |
Context buttons | ||
Popup menu items | ||
Flyout Panel buttons | ||
GroupControl headers |