You can create context menu by using the attached telerik:RadContextMenu.ContextMenu
property. You can set it in the Style targeting the RadDiagramShape
control. Furthermore, you can subscribe to the Opened
event of the RadContextMenu
in order to get the shape that you clicked on. Also, you can subscribe to the Click
event of the RadMenuItem
control in order to detect which items has been clicked.
Please note that you need to subscribe to those events using the native EventManager
. For your convenience I prepared a sample project demonstrating the described approach. Please take a look at it and let me know if you need any further assistance.
Pavel R. Pavlov
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>