public class ReportColumn { public string ColumnName { get; set; } public object OriginalValue { get; set; } public object ChangedValue { get; set; } public bool IsChanged { get; set; } }In my XAML I created a DataTemplate for it:
<DataTemplate DataType="{x:Type local:ReportColumn}" <StackPanel Orientation="Horizontal" <!-- Column Name -- <TextBlock Margin="0,0,5,0" FontWeight="Bold"Name:</TextBlock <TextBlock Text="{Binding Path=ColumnName}"</TextBlock <!-- Original Value -- <TextBlock Margin="20,0,5,0" FontWeight="Bold"Original:</TextBlock <TextBlock Text="{Binding Path=OriginalValue}"</TextBlock <!-- Changed Value -- <TextBlock Margin="20,0,5,0" FontWeight="Bold"Change:</TextBlock <TextBlock Text="{Binding Path=ChangedValue}"</TextBlock </StackPanel </DataTemplateThen the whole thing is bound to the treeview. What I'd like is to make this node's foreground red when IsChanged is true. Can someone explain how to do this?