WPF TextBlock Negative Number In Red
I am trying to figure out the best way to create a style/trigger to set foreground to Red, when value is < 0. what is the best way to do this? I'm assuming DataTrigger, but how can I check for negative value, do i have to create my own IValueConverter? Wonko the Sane If you are not using an MVVM model (where you may have a ForegroundColor property), then the easiest thing to do is to create a new IValueConverter, binding your background to your value. In MyWindow.xaml: <Window ... xmlns:local="clr-namespace:MyLocalNamespace"> <Window.Resources> <local:ValueToForegroundColorConverter x:Key=