The following DataTemplate.DataTrigger makes the age display red if it is equal to 30.
DataTemplate.DataTrigger
How do I make the age display red if it is
If possible, you could add a property to your model, that's the easiest way. Eg.
public int AgeBoundry { get { if (Age < 30) return 0; else if (Age == 30) return 1; else return 2; } }
then you can check on the value of the integer.
0 1 2