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
天书 阅读(1919)
评论(0) 编辑 收藏 引用