MA
Maria Amal Raj T
Syncfusion Team
February 24, 2011 05:34 AM UTC
Hi,
Thanks for your interest in Syncfusion Products.
When a Node is dragged and dropped from SymbolPalette, DiagramView’s NodeDrop event will be fired. The Shape of the Node that is dropped can be determined using Shape property as shown in the following code snippet.
Code Snippet :
//Register Node Drop Event
diagramView.NodeDrop += new NodeDroppedEventHandler(diagramView_NodeDrop);
void diagramView_NodeDrop(object sender, NodeDroppedRoutedEventArgs evtArgs)
{
Node n = evtArgs.DroppedNode as Node;
string str = n.Shape.ToString();
MessageBox.Show("The Dropped Node's Shape is : " + str);
}
Here, diagramView is an instance of DiagramView
Please let us know if you have any queries.
Regards,
Maria Amal Raj T,
Diagram WPF&Silverlight Team,
Syncfusion-Chennai.