I want to make the text in certain rows of my grid bold, based on a certain property of my object. How can I create a style that has a property that I can bind to so that I can achieve this result? I don't want to change the look at all of the GridViewCell's, just make the text inside of them bold or not bold.
EDIT: It got it to work by using a DataTrigger.
EDIT: It got it to work by using a DataTrigger.
| <Style TargetType="{x:Type GridView:GridViewCell}"> |
| <Style.Triggers> |
| <DataTrigger Binding="{Binding Path=HasRead}" Value="False"> |
| <Setter Property="FontWeight" Value="Bold"/> |
| </DataTrigger> |
| </Style.Triggers> |
| </Style> |