Why do items in TreeViewItem inherit the event handlers of parent?
问题 So, I create a TreeViewItem (parentNode), and I add TreeViewItems into the parentNode TreeViewItem. I then add a MouseButtonEventHandler to the parentNode, and now all the TreeViewItems inside parentNode have the MouseButtonEventHandler. I've run the debugger to see if I have code that was accidentally written to add the MouseButtonHandler, but there isn't... Edit: I did additional tests, and it even goes two levels down. Is there a way to isolate eventhandlers to only the specific node and