I have a property that is populated via binding. Color attribute is set the value of Color property
<Rectangle.Fill>
<SolidColorBrush Color="{Binding Path=Color}"/>
</Rectangle.Fill>
How can I refactor that to the conditional binding like that:
<Rectangle.Fill>
<SolidColorBrush Color="{Binding Path=SomeBooleanProperty ? #FF0000 : #00FF00 }"/>
</Rectangle.Fill>
Thank you, @Jackson, final code is the following: