You have to specify the class of Foreground
, you have to omit DisplayMemberBinding
and use e.g. a TextBlock
in DataTemplate
instead:
<DataTemplate>
<TextBlock Text="{Binding Path=Title , TargetNullValue='No Title Found'}"/>
<DataTemplate.Triggers>
<DataTrigger Binding="{Binding Title}" Value="{x:Null}">
<Setter Property="TextBlock.Foreground" Value="Salmon"/>
</DataTrigger>
</DataTemplate.Triggers>
</DataTemplate>