posts - 124,  comments - 29,  trackbacks - 0

using DevComponents.DotNetBar;
using DevComponents.DotNetBar.Rendering;

   private void StyleChange(object sender, EventArgs e)
        {
            ButtonItem item = sender as ButtonItem;
            if (item == BUTStyle07Blue)
            {
                // This is all that is needed to change the color table for all controls on the form
                ribbonControl1.Office2007ColorTable = eOffice2007ColorScheme.Blue;
            }
            else if (item == BUTStyle07Black)
            {
                // This is all that is needed to change the color table for all controls on the form
                ribbonControl1.Office2007ColorTable = eOffice2007ColorScheme.Black;
            }
            else if (item == BUTStyle07Silver)
            {
                // This is all that is needed to change the color table for all controls on the form
                ribbonControl1.Office2007ColorTable = eOffice2007ColorScheme.Silver;
            }

            this.Invalidate();
        }

posted on 2008-09-11 10:54 天书 阅读(1952) 评论(0)  编辑 收藏 引用

<2010年5月>
2526272829301
2345678
9101112131415
16171819202122
23242526272829
303112345

常用链接

留言簿(5)

随笔档案

文章分类

文章档案

好友的Bolg

搜索

  •  

最新评论

阅读排行榜

评论排行榜