记DotNetBar换肤

界面:

  comboBoxEx  选择皮肤

  buttonX    测试指定皮肤

  styleManager

后台代码:

  初始化 :  

      this.EnableGlass = false; 设置窗体效果 不设置 依然显示winform效果

  Load事件:

        string[] _styles = Enum.GetNames(typeof(eStyle));

              comboBoxEx1.Items.AddRange(_styles);

      把皮肤样式加载到下拉列表框

  comboBoxEx1_SelectedIndexChanged 事件 样式改变事件

      

      eStyle style;

            if (!Enum.TryParse<eStyle>(comboBoxEx1.Text, out style))      

           {                 return;             }

 

            styleManager1.ManagerStyle = style;

posted @ 2014-09-25 10:01  CarlosAdmin  阅读(952)  评论(0编辑  收藏  举报