DevExpress的42种窗体样式

时间:2022-01-10 05:54:38

在Winform环境下DevExpress标题栏皮肤

第一步:引用DLL文件,安装DevExpress后在引用>程序集>扩展:

DevExpress.BonusSkins.v12.2.dll

DevExpress.Utils.v12.2.dll

DevExpress.Data.v12.2

第二步:应用程序的主入口点注册代码
//下面是注册皮肤,必须在Run方法之前

DevExpress.Skins.SkinManager.EnableFormSkins();
DevExpress.UserSkins.BonusSkins.Register();

第三步:创建Form窗体

将public partial class Form1 : Form

改为public partial class Form1 : XtraForm

第四步:添加控件

1.添加defaultLookAndFeel控件,默认在DX.12.2:Components工具栏下。

2.添加comboBox控件。

3.comboBox添加选择事件

private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
{
         this.defaultLookAndFeel1.LookAndFeel.UseDefaultLookAndFeel = false;
         this.defaultLookAndFeel1.LookAndFeel.UseWindowsXPTheme = false;
         this.defaultLookAndFeel1.LookAndFeel.Style =DevExpress.LookAndFeel.LookAndFeelStyle.Skin;
         string SkinName = this.comboBox1.SelectedItem.ToString();
         this.defaultLookAndFeel1.LookAndFeel.SkinName = SkinName;
}

1. DevExpress Style
 2. DevExpress Dark Style
 3. VS2010
 4. Seven Classic
 5. Office 2010 Blue
 6. Office 2010 Black
 7. Office 2010 Silver
 8. Office 2013
 9. Coffee
 10. Liquid Sky
 11. London Liquid Sky
 12. Glass Oceans
 13. Stardust
 14. Xmas 2008 Blue
 15. Valentine
 16. McSkin
 17. Summer 2008
 18. Pumpkin
 19. Dark Side
 20. Springtime
 21. Foggy
 22. High Contrast
 23. Seven
 24. Sharp
 25. Sharp Plus
 26. The Asphalt World
 27. Whiteprint
 28. Caramel
 29. Money Twins
 30. Lilian
 31. iMaginary
 32. Black
 33. Office 2007 Blue
 34. Office 2007 Black
 35. Office 2007 Silver
 36. Office 2007 Green
 37. Office 2007 Pink
 38. Blue
 39. Darkroom
 40. Blueprint
 41. Metropolis Dark
 42. Metropolis