I have a list :
Name Age Description
which I need to display in a grid.
How to display the binded property of Description to grid where if a description contain a specific keyword as "Good","Kind" then it must be highlighted in such a way that for "Good" it must be pink and for "Kind" it must be in Red .
Example
Name Age Description
ABC 25 I am very Good person
XYZ 28 I am very Kind person
PQR 26 I am a jovial kind of person.
I need to use this MVVM
Model:
private string name
public string Name { get { return name } set { name = value; } }
private int age
public int Age{ get { return age} set { age= value; } }
private string description
public string Description{ get { return description} set { description= value; } }
In Xaml :-
<TextBlock Name="tbDescription" Text="{Binding RowData.Row.Description, Mode=OneWay}"
Width="300" VerticalAlignment="Center" HorizontalAlignment="Left" TextTrimming="CharacterEllipsis" MinWidth="300">