I have an silverlight application with the to following lines somewhere in the app:
txtMelding.Foreground = new SolidColorBrush(Colors.Black);
and
txtMelding.Foreground = new SolidColorBrush(Colors.Gray);
Later I want to have an IF that checks whenever the foreground color is black or gray. How?
I found out how to do it: