I can't be sure how you populate the RadDiagramToolbox
with your custom shapes, but I will suggest an approach. You can subscribe to the native Drop
event of the RadDiagram
control. Furthermore, in its handler you will be able to access the dropped item. Also, you will be able to create your custom control based on the settings of the dropped item.
You can use similar to the following snippet:
sender, DragEventArgs e)
var shape = e.Data.GetData(
//check properties and create custom control
Please give this approach a try and let us know if this approach works in your scenario.
Pavel R. Pavlov
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
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 >>