DotNetBar 界面风格设计 eOffice2007ColorScheme

DotNetBar 界面风格设计 eOffice2007ColorScheme

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();
        }

你可能感兴趣的:(DotNetBar 界面风格设计 eOffice2007ColorScheme)