I have a ListView with custom ItemTemplate for the items.
I want to remove or change the visual effect for selection.
So far I tried assgining a custom ItemContainerStyle to my ListView:
<ListView x:Name="DispList" ItemContainerStyle="{StaticResource MySty}" ItemTemplate="{StaticResource Mine}">
</ListView>
And under resources, defining the style as follows:
<Style TargetType="{x:Type ListViewItem}" x:Key="MySty">
<Style.Resources>
<SolidColorBrush x:Key="{x:Static SystemColors.HighlightBrushKey}" Color="Transparent"/>
</Style.Resources>
</Style>
Unfortunately, this does not work. What am I missing?