What do I have?
I have a ListBox
populated with items from an XML file. Given a DynamicResource
for Style
property and written trigger for IsSelected
in ItemContainerStyle
.
What do I want to do?
I want to keep the selected Item highlighted even after focus moved out of the ListBox
.
What problem am I facing?
When I select an item the style specified in IsSelected
trigger works. But, when I move the focus out of list box (press tab or click on some other control) the selected item loses its style. Is there any way so that I can retain the selected item style?
Thanks in advance!