• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>

            天下

            記錄修行的印記

            Dev Express 一些Tips

            Dev Express

            Skin Libraries
            Skins 
            for DevExpress components are shipped in compiled libraries. To apply a skin, ensure that a corresponding library is added to the References section of your project.

            Common Skins
            The DevExpress.Utils.v15.
            2.dll library contains common skins such as the DevExpress Style, Office 2013, VS2010, Office 2010 Blue, etc. This library is automatically added to the References section of your project when any DevExpress control/component is added to the form.

            Extra Skins
            Certain additional skins are available 
            in the DevExpress.BonusSkins.v15.2.dll library, which must be manually added to the References section if you need to use any of these bonus skins.

            Custom Skins
            You can customize any common or extra skin by creating a custom skin 
            using the WinForms Skin Editor utility. The WinForms Skin Editor creates a skin library (.dll) containing custom skins. The created library must be manually added to the References section of your project.

            Note
            To use any extra or custom skin at runtime, you need to add the skin library registration code. See the Bonus and Custom Skin Registration topic to learn more.
            [STAThread]
            static void Main() {
                
            // Skin registration.
                DevExpress.UserSkins.BonusSkins.Register();
                Application.Run(
            new Form1());
            }


            使動態皮膚即刻生效
            It 
            is possible to call the EnableFormSkins() method later, after the application startup. In this instance, the DevExpress.LookAndFeel.LookAndFeelHelper.ForceDefaultLookAndFeelChanged method needs to be called after the call to EnableFormSkins(). This forces the form's title bar to be repainted.
            DevExpress.Skins.SkinManager.EnableFormSkins();
            DevExpress.LookAndFeel.LookAndFeelHelper.ForceDefaultLookAndFeelChanged();
            或者
            DevExpress.Skins.SkinManager.DisableFormSkins();
            DevExpress.LookAndFeel.LookAndFeelHelper.ForceDefaultLookAndFeelChanged();


            動態換皮膚
            //添加控件 comboBoxEdit1
            public partial class Form1 :  DevExpress.XtraEditors.XtraForm
            {
                
            public Form1()
                {
                    InitializeComponent();
                    
            foreach (SkinContainer cnt in SkinManager.Default.Skins)
                        comboBoxEdit1.Properties.Items.Add(cnt.SkinName);
                    comboBoxEdit1.SelectedIndexChanged 
            += new EventHandler(comboBoxEdit1_SelectedIndexChanged);
                }
                
            void comboBoxEdit1_SelectedIndexChanged(object sender, EventArgs e)
                {
                    ComboBoxEdit comboBox 
            = sender as ComboBoxEdit;
                    
            string skinName = comboBox.Text;
                    
            //DevExpress.LookAndFeel.UserLookAndFeel.Default.SkinName = skinName;
                    this.LookAndFeel.SkinName = skinName;
                }
            }


            //using DevExpress.XtraBars.Helpers;
                public partial class Form1 :  DevExpress.XtraEditors.XtraForm
                {
                    
            public Form1()
                    {
                        InitializeComponent();
                        
            this.barManager1.ForceInitialize();
                        alertControl1.BeforeFormShow 
            += alertControl1_BeforeFormShow;

                        
            //禁止barManage右鍵顯示
                        this.barManager1.AllowCustomization = false;
                        
            this.barManager1.AllowShowToolbarsPopup = false;
                        
            //去除barManage右邊小三角 自定制
                        this.barManager1.AllowQuickCustomization = false;


                        
            this.LookAndFeel.UseDefaultLookAndFeel = true;
                        
            //添加一個BarSubItem DevExpress.XtraBars.BarSubItem mPaintStyle;
                        
            //添加換膚
                        SkinHelper.InitSkinPopupMenu(mPaintStyle);

                        
            //標題欄支持皮膚
                        DevExpress.Skins.SkinManager.EnableFormSkins();
                    }
            }

            posted on 2016-07-21 09:54 天下 閱讀(556) 評論(0)  編輯 收藏 引用 所屬分類: C#

            <2013年5月>
            2829301234
            567891011
            12131415161718
            19202122232425
            2627282930311
            2345678

            導航

            統計

            常用鏈接

            留言簿(4)

            隨筆分類(378)

            隨筆檔案(329)

            鏈接

            最新隨筆

            搜索

            最新評論

            性做久久久久久久| 久久se精品一区精品二区国产 | 久久久久无码精品| 久久国产精品二国产精品| 国产成人久久精品麻豆一区| 久久久精品国产亚洲成人满18免费网站| 久久久91人妻无码精品蜜桃HD | 亚洲AV无码成人网站久久精品大| 国产精品久久久香蕉| 久久永久免费人妻精品下载| 久久久久国产日韩精品网站| 国内精品久久久久久久久电影网| 99久久精品影院老鸭窝| 亚洲国产精品成人久久蜜臀 | 狠狠色丁香婷综合久久| 亚洲国产一成久久精品国产成人综合 | 亚洲AV日韩精品久久久久久| 国内精品久久久久国产盗摄| 免费精品国产日韩热久久| 91精品无码久久久久久五月天| 久久精品国产日本波多野结衣| 久久精品国产一区二区三区日韩| 香蕉99久久国产综合精品宅男自| 亚洲国产成人久久精品动漫| 亚洲愉拍99热成人精品热久久| 精品久久久久久无码国产| 久久福利青草精品资源站| 18岁日韩内射颜射午夜久久成人| 99久久国产免费福利| 久久99精品久久久久婷婷| 久久九九兔免费精品6| 综合久久精品色| 日韩AV毛片精品久久久| 久久精品国产亚洲Aⅴ蜜臀色欲| 久久国产精品久久精品国产| 久久超乳爆乳中文字幕| 亚洲精品美女久久久久99| 久久久精品国产免大香伊| 国产精品中文久久久久久久| 久久久久亚洲AV无码专区首JN| 久久天天躁夜夜躁狠狠|