There is an unsaved comment in progress. You will lose your changes if you continue. Are you sure you want to reopen the work item?
TreeView jumps to last node when used inside a tab control and using complex headers for TreeViewItems
I have a simple Tab control with two tabs, one of them contains a tree.
The tree (TreeView) contains a couple of TreeViewItems, each of the uses a "complex" content for header - a StackPanel with a button and a textblock (sample code attached).
The scenario - run the app, click the first node to select it, move to tab no. 2, return to tab no. 1 - the selected node is not the last node.
It also seems that every node/item receives selected + unselected events (first unselected, second selected, second unselected, third selected and so on...)