Have a custom context menu display when a shape is right clicked

Applies to: Nevron Diagram for .NET

How to have a custom context menu display when a shape is right clicked?

You can use the ContextMenu property of the NDrawingView instance. This creates a context menu for the whole document but you can easily bypass this. Just check when the user right clicks a shape and then set the menu to the context menu you have created. When the user clicks outside any shape, then just assign an empty context menu to the ContextMenu property.

Article ID: 21, Created On: 9/29/2010, Modified: 11/15/2010