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

            <2016年7月>
            262728293012
            3456789
            10111213141516
            17181920212223
            24252627282930
            31123456

            導航

            統計

            常用鏈接

            留言簿(4)

            隨筆分類(378)

            隨筆檔案(329)

            鏈接

            最新隨筆

            搜索

            最新評論

            久久天堂电影网| 久久久久久久久无码精品亚洲日韩| 一本久久a久久精品综合夜夜| 88久久精品无码一区二区毛片| 亚洲美日韩Av中文字幕无码久久久妻妇| 97精品国产97久久久久久免费| 久久91精品国产91久久小草| 亚洲综合久久夜AV | 97久久超碰国产精品旧版| 综合久久一区二区三区 | 国产亚洲美女精品久久久| 亚洲综合日韩久久成人AV| 久久久精品波多野结衣| 久久精品国产久精国产思思| 色偷偷91久久综合噜噜噜噜| 欧美久久综合性欧美| 无码专区久久综合久中文字幕| 久久黄视频| 久久久久国产精品麻豆AR影院| 国产精品久久久久久久| 亚洲国产精品一区二区久久hs| 久久久久亚洲AV无码专区桃色| 亚洲成色999久久网站| 无码国内精品久久人妻| 久久久久久久97| 欧美亚洲日本久久精品| 久久婷婷国产麻豆91天堂| 日本欧美久久久久免费播放网 | 伊人久久大香线蕉亚洲| 欧美日韩成人精品久久久免费看 | 国产69精品久久久久APP下载 | 久久久久亚洲av综合波多野结衣| 精品无码久久久久久久动漫| 国产精品美女久久久免费| 99久久精品久久久久久清纯| 91超碰碰碰碰久久久久久综合| 色婷婷综合久久久久中文一区二区| 亚洲精品蜜桃久久久久久| 色欲av伊人久久大香线蕉影院| 人妻久久久一区二区三区| 国产精品久久久久久一区二区三区|