读书人

100分开源控件OutlookBar控件改不了

发布时间: 2012-05-28 17:59:33 作者: rapoo

100分,开源控件OutlookBar控件改不了栏目的背景颜色!
OutlookBar控件改不了栏目的背景颜色,只能改item的颜色

OutlookBar outlookBar1 = new OutlookBar();

OutlookBarBand outlookShortcutsBand = new OutlookBarBand("销售管理");//"销售管理"的背景颜色改不了
outlookShortcutsBand.Items.Add(new OutlookBarItem("订单管理", 0));
outlookShortcutsBand.Items.Add(new OutlookBarItem("客户管理", 1));
outlookShortcutsBand.Background = SystemColors.Green;//只能改item的颜色
outlookShortcutsBand.TextColor = Color.White;
outlookBar1.Bands.Add(outlookShortcutsBand);


控件下载地址:http://files.cnblogs.com/wuhuacong/UtilityLibrary.rar


[解决办法]
http://www.cnblogs.com/wuhuacong/archive/2009/07/10/1520148.html

看demo吧 有些东西 自己多摸索 搜搜帮助文档

[解决办法]
加一句

UtilityLibrary.General.ColorUtil.VSNetBackgroundColor = Color.Red;//设置为红色

读书人网 >C#

热点推荐