首页 > Windows开发 > 详细

DevExpress的42种窗体样式

时间:2017-12-03 21:32:15      阅读:422      评论:0      收藏:0      [点我收藏+]

在Winform环境下DevExpress标题栏皮肤

第一步:添加DLL文件

Debug目录下添加:

DevExpress.BonusSkins.v12.2.dll

DevExpress.Utils.v12.2.dll

DevExpress.Data.v12.2

第二步:引用

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

DevExpress的42种窗体样式

原文:http://www.cnblogs.com/AlexOneBlogs/p/7967345.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!