Hi John,
Thanks for your interest in Syncfusion products.
We suggest you to use the Diagarm.Model.EventSink’s “ConnectionChanged/Changing” event to detect whether a connection between the nodes is made or broken. Please refer the below code to achieve your requirement.
Here is the code:
[C#]
//ConnectionChanged event
diagram1.Model.EventSink.ConnectionsChanged += new CollectionExEventHandler(EventSink_ConnectionsChanged);
void EventSink_ConnectionsChanged(CollectionExEventArgs evtArgs)
{
if (evtArgs.ChangeType == CollectionExChangeType.Insert)
{
MessageBox.Show("Nodes Connected");
}
if (evtArgs.ChangeType == CollectionExChangeType.Remove)
{
MessageBox.Show("Nodes Disconnected");
}
}
For your convenience, we have created a simple sample to achieve your requirement.
Please try the below sample and let us know if you have any queries.
Forum ConnectionChnaged-2090508724.zipRegards,
Amsath Ali. M