This question is locked. New answers and comments are not allowed.
When i open the context menu i need to know where i clicked. i Know how to tell what item i clicked on but what if i clicked on white space where there is no item...
think of a file tree... when i right on click on a folder i want to make a new item in that folder but when i click outside of that folder i want to make one in the root... also you would have to then trap the items saying that files cant have child elements while folders can.
is there a way to tell a treeview that has drag and drop enabled that some items can have child elements but some cant?
also how do you tell if i right clicked the context menu just over the treeview not the treeviewitem?
think of a file tree... when i right on click on a folder i want to make a new item in that folder but when i click outside of that folder i want to make one in the root... also you would have to then trap the items saying that files cant have child elements while folders can.
is there a way to tell a treeview that has drag and drop enabled that some items can have child elements but some cant?
also how do you tell if i right clicked the context menu just over the treeview not the treeviewitem?