• <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 天下 閱讀(563) 評論(0)  編輯 收藏 引用 所屬分類: C#

            <2012年2月>
            2930311234
            567891011
            12131415161718
            19202122232425
            26272829123
            45678910

            導航

            統計

            常用鏈接

            留言簿(4)

            隨筆分類(378)

            隨筆檔案(329)

            鏈接

            最新隨筆

            搜索

            最新評論

            久久精品国产国产精品四凭| 久久久噜噜噜久久中文福利| 久久午夜电影网| 久久激情亚洲精品无码?V| 久久人人爽人人爽人人片AV麻烦 | 久久大香萑太香蕉av| 亚洲精品高清国产一线久久| www性久久久com| 欧美日韩久久中文字幕| 久久99精品久久久久久| 久久久久亚洲国产| 精品国产福利久久久| 精品久久亚洲中文无码| 久久男人中文字幕资源站| 精品久久久久久无码专区不卡 | 秋霞久久国产精品电影院| 日本精品一区二区久久久| 久久无码av三级| 99国产欧美久久久精品蜜芽| 久久只有这精品99| 色婷婷久久综合中文久久一本| 国产成人久久激情91| 新狼窝色AV性久久久久久| 欧美日韩精品久久免费| 色婷婷久久久SWAG精品| 精品久久久久久国产免费了| 久久99精品国产一区二区三区| 色综合久久久久无码专区| 免费久久人人爽人人爽av| 久久精品国产72国产精福利| 欧美伊香蕉久久综合类网站| 久久A级毛片免费观看| 97久久精品无码一区二区| 婷婷五月深深久久精品| 久久午夜羞羞影院免费观看| 亚洲愉拍99热成人精品热久久| 久久人与动人物a级毛片| 国产成人精品综合久久久久| 狠狠精品久久久无码中文字幕| 久久综合亚洲色一区二区三区| 久久人人爽人人人人爽AV|