Hi Rtoulait,
Thanks for your interest in Syncfusion products.
We suggest you to use the Diagram.Model.EventSink’s ‘NodeCollectionChanged/Changing’
events to achieve your requirement. Please refer the below code snippet.
Here is the code:
[C#]
diagram1.Model.EventSink.NodeCollectionChanged
+= new CollectionExEventHandler(EventSink_NodeCollectionChanged);
void
EventSink_NodeCollectionChanged(CollectionExEventArgs
evtArgs)
{
if
(evtArgs.ChangeType == CollectionExChangeType.Insert)
{
if
(evtArgs.Element is PolyLineConnector)
{
//Peform
your actions
}
}
}
Please try the below attached sample and let us know if you
have any queries.
Regards,
Amsath Ali. M
F108838_344855bf.zip