Ok, here is my situation: I have a DataGridView containing Message s, to which the following style applies.
<Style x:Key="ChangeSetRowStyle" TargetType="{x:Type DataGridRow}"> <Setter Property="FontWeight" Value="Normal" /> <Style.Triggers> <DataTrigger Binding="{Binding IsRead}" Value="False"> <Setter Property="FontWeight" Value="Bold" /> </DataTrigger> <DataTrigger Binding="{Binding IsRead}" Value="True"> <Setter Property="FontWeight" Value="Normal" /> </DataTrigger> </Style.Triggers> </Style>
My intention is to make unread messages bold, and read messages remain with the normal font weight. Despite the fact that the style is applied correctly when loading the collection, nothing changes when the item IsRead is changed. It seems that the style is simply not being updated.
Can someone shed some light on this? Thanks!
source share