Hi Daniel,
Requirement : “How do I find out when the user has finished drawing the connection?”
ObjectDrawn event occurs when draw the objects(Node/Connector) on Diagram Page. In this event, we can identify the drawing state of the objects using State argument and also identify, which object is drawing on Diagram Page using the Item argument.
Please find the code example as below to identify the completed state of the Object
Code example ,
|
//Hook the ObjectDrawn event
(diagram.Info as IGraphInfo).ObjectDrawn += MainWindow_ObjectDrawn;
void MainWindow_ObjectDrawn(object sender, ObjectDrawnEventArgs args)
{
if (args.State == DragState.Completed)
{
}
}
|
Regards,
Suresh Shanmugam