Thank you for the source code! I am just wondering on how I can do the context menu on nodes. In your example, you have to right click on two different parts of the treeview to display the respective context menu.
What I am trying to achieve is, right-click on a node, get the item, check 'type' and from there display the related context menu.
Thank you for your help.