I expect this is probably a simple answer, but I can't find it.

When you left click on a node, it highlights it. When I right click on a node it doesn't move the highlight from the last selected node.

I have code in the treeview MouseDown for a context menu.
The menu items are bases on the SelectedItem.Key of the treeview - which is still the last selected node.

How do I get around this problem??

Thanks