Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

Omit the blue mark item selection from list box

$
0
0

I'm using the following for list view and i want to disable the blue mark when user is go over the list with the mouse (the list is read only and you cannot modify it...),how can i do that? I was try with the resources code without success.

I cannot change it to list box...(since I have the column i guess)

<ListView x:Name="listView" ItemsSource="{Binding Dispaly}" Height="250" 
                      ScrollViewer.HorizontalScrollBarVisibility="Disabled"  FontFamily="Calibri"><ListView.View><GridView><GridViewColumn DisplayMemberBinding="{Binding Key}" Header="{x:Static res:Resources.AB}"   Width="150" /><GridViewColumn DisplayMemberBinding="{Binding Value}" Header="{x:Static res:Resources.CC}" Width="150"/></GridView></ListView.View><ListView.ItemContainerStyle><Style TargetType="ListViewItem"><Setter Property="BorderThickness" Value="0 0 0 1"/><Setter Property="BorderBrush" Value="AntiqueWhite"/></Style></ListView.ItemContainerStyle><ListView.Resources><SolidColorBrush x:Key="{x:Static SystemColors.HighlightBrushKey}" Color="Transparent" /><SolidColorBrush x:Key="{x:Static SystemColors.HighlightTextBrushKey}" Color="Black" /><SolidColorBrush x:Key="{x:Static SystemColors.ControlBrushKey}" Color="Transparent" /></ListView.Resources></ListView>


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>