title: How to mimic left click behaviour for right click for a TreeView in WPF?
body: <p>When I left click on a <code>TreeView</code>, it automatically selects the item under mouse. How can I do this for right click so when you right click, it also selects the item under mouse?</p>
  
  <p>I want to do this because when I right click, I set the context menu of the <code>TreeView</code> when the <code>SelectedItem</code> changes, based on the <code>e.NewValue</code> of <code>TreeView_SelectedItemChanged</code>. But the right click itself doesn't change the <code>SelectedItem</code>, that's why the wrong menu shows up. Or I have to first left click to the item I want selected, and then right click.</p>
  
  <p>Any ideas on how to do this?</p>