I have assigned an event handler forÃÂ mousedoubleclick on treeviewitems in a style. However, after the eventhandler has finished executing for the treeviewitem that i double clicked, it runs again for all its parent nodes right to the top of the tree. I have specified e.Handled = true at the end of the event handler but it doesnt seem to have any effect.
I have included the full code below. The treeview is made up of different object types, and therefore i have a different HierarchicalDataTemplate for each of these types (maybe thats the problem).
Anyway, i would like to know of a way to stop the event from bubbling up so the MouseDoubleClick event is only handled for the treeviewitem i double clicked
Sorry for the amount of code i had to provide to demonstrate the problem, but this has been nagging me for days!
Classes i am using: