
Hi,
I'm trying to overwrite the listviewitem background color based on a property. It works but only when the item is not selected or mouse hovered. How can I fix it so the background color is always blue in my case when IsMarked property is true?
<ListView.ItemContainerStyle>
<Style BasedOn="{StaticResource {x:Static themes:SharedResourceKeys.ListViewItemStyleKey}}" TargetType="{x:Type ListViewItem}">
<Style.Triggers>
<DataTrigger Binding="{Binding Path=IsMarked}" Value="True">
<Setter Property="Background" Value="{DynamicResource BlueBrush}" />
</DataTrigger>
</Style.Triggers>
</Style>
</ListView.ItemContainerStyle>