views:

12

answers:

1

Hi,

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.

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

Thanks.

A: 

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.

John Bowen