//DevExpress.UserSkins.BonusSkins.Register(); SkinRibbonGalleryBarItem srgbi = new SkinRibbonGalleryBarItem(); this.ribbonPageGroup1.ItemLinks.Add(srgbi); SkinHelper.InitSkinGallery(srgbi);
1.新的SkinRibbonGalleryBarItem 必须先添加到ItemLinks之后再进行初始化
PopupMenu同理
2. 窗口启动前自动修改皮肤
if (!DevExpress.Skins.SkinManager.AllowFormSkins) { DevExpress.Skins.SkinManager.EnableFormSkins(); } DevExpress.LookAndFeel.UserLookAndFeel.Default.SetSkinStyle("VS2013BlueAdd");