Exemple #1
0
 private void Style_ElementClick(object sender, DevExpress.XtraBars.Navigation.NavElementEventArgs e)
 {
     Utils.utils._ShowWait("请稍后,主题正在应用", "大约需要10秒");
     DevExpress.XtraBars.Navigation.TileNavSubItem tileNavSubItem = (sender) as DevExpress.XtraBars.Navigation.TileNavSubItem;
     defaultLookAndFeel1.LookAndFeel.SkinName = tileNavSubItem.Caption;
     Utils.utils._EndShowWait();
 }
Exemple #2
0
        private void inistylelist()
        {
            foreach (DevExpress.Skins.SkinContainer skin in DevExpress.Skins.SkinManager.Default.Skins)
            {
                DevExpress.XtraBars.Navigation.TileNavSubItem tileNavSubItem  = new DevExpress.XtraBars.Navigation.TileNavSubItem();
                DevExpress.XtraEditors.TileItemElement        tileItemElement = new DevExpress.XtraEditors.TileItemElement();

                tileNavSubItem.Caption = skin.SkinName;
                tileNavSubItem.Name    = skin.SkinName;

                tileNavSubItem.Tile.DropDownOptions.BeakColor = System.Drawing.Color.Empty;
                tileItemElement.Text = skin.SkinName;
                tileNavSubItem.Tile.Elements.Add(tileItemElement);
                tileNavSubItem.Tile.Name = "tileItemElement";
                this.tileNavItem_style.SubItems.Add(tileNavSubItem);
            }
        }