一、皮肤的使用
- 拖入defaultLookAndFeel 组件到窗体中
- 拖入ribbonControl 控件到窗体中
- 将窗体继承为 DevExpress.XtraBars.Ribbon.RibbonForm
- 将窗体的AllowFormGlass属性改为 False
- 引用DevExpress.BonusSkins
- 引用DevExpress.OfficeSkins
- 在Main方法中加入代码DevExpress.UserSkins.BonusSkins.Register();
7.DevExpress.UserSkins.OfficeSkins.Register();
7.DevExpress.Skins.SkinManager.EnableFormSkins();
7.DevExpress.Skins.SkinManager.EnableMdiFormSkins();
子窗体继承父窗体的样式:
- 继承DevExpress.XtraEditors.XtraForm
(注:也可以直接单击右键创建DevExpress窗体)
做个笔记,备用