title: How do i convert a Brush datatype to Color in c#, WP7?
body: <p>I am currently trying to convert a brush type to color using this code</p>
  
  <p>Color a = (brush1 as SolidColorBrush).Color;</p>
  
  <p>but i am getting a Nulpoint exception.Can anyone help?</p>