title: Programmatically selecting items in a WPF ListView
body: <p>How can I set the selected items in a WPF ListView programmatically?</p>
  
  <p>Basically, I have a <code>List&lt;SomeEntity&gt;</code> and a ListView that is bound to another <code>List&lt;SomeEntity&gt;</code>. I need to mark the items that exist on the first list as selected.</p>