Hello,
I need some advice on an approach to have a context menu associated for a node that is right-clicked on. There is a way to associate a context menu with the entire diagram, but I cannot find a clean way to associate it with a specific node. I have tried the following:
- diagram ShapeClicked event does not fire for right clicking on a node
- diagram.MouseRightButtonDown even only returns position, so I would have to iterate over all nodes to find one at the specific position
- I've tried adding a RadContextMenu to a DataTemplate for a node, but this seems a messy hack since I would need to ad a ui component that fills the node's body simply to have a context menu.
- I even looked at adding mouse-over behavior to show a pop-up menu on a node (similar to the mindmap demo), but the user requires other behavior on mouse-over and so such a menu would be an impractical approach.
What is the preferred approach of creating a context menu for a node in the diagram?
Thanks in advance,
Mike