I have a ListView with a couple of items in it. When the ListView looses focus, the last selected ListViewItem is still \"selected\" with a gray background. I would like
You can try it:
MyList.ItemSelected += (sender, e) => { ((ListView)sender).SelectedItem = null; };
or if you have the OnSelection created in your View code behind(xaml.cs):
private void OnSelection(object sender, SelectedItemChangedEventArgs e) { ((ListView)sender).SelectedItem = null; }
Regards