I am trying to set up context menus within a treeview based on an hierarchicaldatatemplate in MVVM. The root is a parent viewmodel that has nested viewmodels inside in a observable collection and so on. The root is based in my main viewmodelI am trying to set up context menus within a tr