In my simple WPF application I use regular CheckBox control. It looks like I can control background and foreground. Foreground property controls the text next to the check box but not the check mark. By default background is white, my foreground is very close to white because I have a dark windows form background.
When I run the application on my development Windows 7 machine the check mark is black. On Win XP computer the check mark is green. However on another Win XP machine the check mark is invisible because it’s white on white.
My question is “How can I control the color of a check mark of my check box?”.
This issue happens on Win XP that uses’Windows Classic’ theme or using Remote Desktop.
Bullet check mark of a check box takes color of foreground color for the whole CheckBox.
I was able to fix this problem by changing to the code below: