开发者

WPF CheckBox background color not visible in windows Vista

I have set the background property of a checkbox control to a color, in WPF. It appears OK when run on windows XP but appear as a border color in Vista.开发者_StackOverflow

Anyone know the reason for this behavior and how to overcome?

Thanks.


The default ControlTemplates for the Aero (Vista) and Luna (XP) themes are different and make different use of TemplateBinding to apply externally set properties like Background. To force your brushes to be used differently you'll need to override the default Style and apply your own Template, probably a modified copy of the Aero or Luna version.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜