title: How to use .Foreground?
body: <p>I have an silverlight application with the to following lines somewhere in the app:</p>
  
  <pre><code>txtMelding.Foreground = new SolidColorBrush(Colors.Black);
  </code></pre>
  
  <p>and</p>
  
  <pre><code>txtMelding.Foreground = new SolidColorBrush(Colors.Gray);
  </code></pre>
  
  <p>Later I want to have an IF that checks whenever the foreground color is black or gray. How?</p>