Description:
Is there a way to get colors from the current skin so that they can be applied to standard controls?
Answer:
You can obtain the color which corresponds to the system color, e.g. SystemColors.Control or SystemColors.Highlight, in the current skin. Please use the following code.
C#using DevExpress.Skins;
//...
Skin currentSkin = CommonSkins.GetSkin(DevExpress.LookAndFeel.UserLookAndFeel.Default);
Color c = currentSkin.TranslateColor(SystemColors.Control);
Visual BasicImports DevExpress.Skins
'...
Dim currentSkin As DevExpress.Skins.Skin = CommonSkins.GetSkin(DevExpress.LookAndFeel.UserLookAndFeel.Default)
Dim c As Color = currentSkin.TranslateColor(SystemColors.Control)
See Also:
How to obtain the color of a particular control's element when skins are used
How to get skin images at runtime