title: WPF: binding, conditional property setter
body: <p>I have a property that is populated via binding. Color attribute is set the value of Color property</p>
  
  <pre><code>&lt;Rectangle.Fill&gt;
         &lt;SolidColorBrush Color="{Binding Path=Color}"/&gt;
  &lt;/Rectangle.Fill&gt;
  </code></pre>
  
  <p>How can I refactor that to the conditional  binding like that: </p>
  
  <pre><code>   &lt;Rectangle.Fill&gt;
             &lt;SolidColorBrush Color="{Binding Path=SomeBooleanProperty ? #FF0000 : #00FF00 }"/&gt;
      &lt;/Rectangle.Fill&gt;
  </code></pre>