Reputation: 3540
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?
Upvotes: 2
Views: 2430
Reputation: 50038
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
Upvotes: 5