I\'m unable to figure out how to select an item programmatically in a ListView.
I\'m attempting to use the listview\'s ItemContainerGenerator, but it just doesn\'t s
Bind the IsSelected property of the ListViewItem to a property on your model. Then, you need only work with your model rather than worrying about the intricacies of the UI, which includes potential hazards around container virtualization.
For example:
Now, just work with your model's IsGroovy property to select/deselect items in the ListView.