WPF: Remove dotted border around focused item in styled listbox
WpfXamlListboxFocusBorderWpf Problem Overview
I have a horizontal listbox with a custom controlIemplate. The selected item gets a dotted frame when focused. Anyone know how to get rid of it?
Wpf Solutions
Solution 1 - Wpf
You need to set FocusVisualStyle of each ListBoxItem to null. Steps are bellow
-
Create ItemContainerStyle for the ListBox