I am using Listbox with ItemTemplate, and when I select an item from the list, it shows blue background
How can I style the selected item, to be similar to non-selected one?
Wpf – listbox itemtemplate for selected item
itemtemplatelistboxselecteditemwpf
Best Answer
I hope you are looking for to remove the blue default ListBox selection. That color is coming from the IsSelected DataTrigger on the ListBoxItem style. You can override that by creating a copy of ListBoxItemStyle, which is ListBox.ItemContainerStyle
Just a little more inside information about a ListBox customization. Basically a ListBox customization includes overriding below styles and templates