1. 程式人生 > >DevExpress的42種窗體樣式

DevExpress的42種窗體樣式

family mil str ted 樣式 第一步 控件 nta 應用程序

在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種窗體樣式