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

ListBoxItem got higlighted On Hover

$
0
0

Hi,

I have a listbox with itemtemplate. There is no style got applied to the listbox and also i have defined the itemscontainerstyle locally too. 

I have set the FocusVisualStyle to null.

But as shown in the snap, while hovering on the listboxitem, it is highlighting that item.

Hereby, I have shared the code too.

<ListBox ItemTemplate="{StaticResource DamagedPartsTemplate}"
                         Background="Transparent" BorderBrush="Transparent" BorderThickness="0"
                         ScrollViewer.VerticalScrollBarVisibility="Auto"                         Style="{x:Null}"  ****
                         ItemsSource="{Binding XX}"><ListBox.ItemContainerStyle><Style TargetType="ListBoxItem"><Setter Property="FocusVisualStyle" Value="{x:Null}"/> ****</Style></ListBox.ItemContainerStyle></ListBox>

And also, in the ItemTemplate, no one has the style applied.

May I kindly, how this focusing got applied and how to remove it.

Thanks in advance.


NANDAKUMAR.T



Viewing all articles
Browse latest Browse all 18858

Trending Articles



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