Reputation: 31
How could I set or change the style of windows default controls(Like button,textbox etc.) using the DevExpress themes/skins?
Application: Windows
Framework: .NET Framework 4.0
DevExpress WinForms Version: 14.2
Upvotes: 1
Views: 1416
Reputation: 73502
Devexpress doesn't supports skinning of regular winforms controls. You need to use their own controls to get the application skinned/themed.
For TextBox
you use TextEdit
, for Button
you use SimpleButton
and so on.
But you can read the skin element colors at runtime and apply yourself.
Sample code from the above link(in case link rot in future):
DevExpress.Skins.Skin currentSkin;
DevExpress.Skins.SkinElement element;
string elementName;
currentSkin = DevExpress.Skins.CommonSkins.GetSkin(defaultLookAndFeel1.LookAndFeel);
elementName = DevExpress.Skins.CommonSkins.SkinTextBorder;
element = currentSkin[elementName];
Color skinBorderColor = element.Border.All;
Upvotes: 1