I have:
<TextBlock Text="{Binding OrderType}"/>
OrderType is a string can potentially be A,B,C,D. But I want the textblock to display YES if (A or B) and NO if (C or D), but want the foreground color to be Green if A, Blue if B, Yellow if C, Red if D. What would be the best way to do this? I’m a little confused if I use a converter, what the style trigger should bind to or if there is a better approach. Thanks.
You can do this with Triggers only, there’s a bit of redundancy though: