Conditional Context Menu

J

Jeronimo Bertran

I am trying to conditionally show a context menu for a TreeView control....
I assigned the contextMenu to the TreeView, when the use clics on a node I
want to show the appropiate menu for the type of node the user clicked
on... however if the user right-clics on the treeview space but not on a
particular node, then I don't want to show the context menu.. this is the
same behaviour that the Windows Explorer has for its treeview.

Thanks,

Jeronimo
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top