日期:2014-05-18 浏览次数:20993 次
private void FrmMain_Load(object sender, EventArgs e) { foreach (DevExpress.Skins.SkinContainer skin in DevExpress.Skins.SkinManager.Default.Skins) { var item = tsChangeStyle.DropDownItems.Add(skin.SkinName); item.Click += new EventHandler(item_Click); } } void item_Click(object sender, EventArgs e) { new DevExpress.LookAndFeel.DefaultLookAndFeel().LookAndFeel.SetSkinStyle((sender as ToolStripMenuItem).Text); }
OfficeSkins.Register(); SkinManager.EnableFormSkins(); DevExpress.LookAndFeel.UserLookAndFeel.Default.SetSkinStyle("Office 2007 Black");