Hi,
I am trying to create TreeView, which I fill with HierarchicalDataTemplate.
The items in the TreeView (or actually the databinded hierarchical object) has the property called IsCreated.
I would like to create a different ContextMenu for items with different value of IsCreated. I spent whole day on this, no progress. I tried to create these menus in converter and return them to the ContextMenu property in XAML, it worked, but there is no chance to implement any MenuItem events, because the menus instantized in converter do not see the methods in MainWindow class.