The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
Hi there, I'm evaluating Syncfusion Diagram Windows and I have a question about the best way to get and event when two nodes have been connected by a connector. I would like an event which argument(s) that specify newly connected nodes. I tried
this.diagram1.Model.EventSink.ConnectionsChanged += new CollectionExEventHandler(EventSink_ConnectionsChanged);
DMDinesh M Syncfusion Team November 30, 2009 03:43 PM UTC
Hi Domenico,
Please try the following code and let me know whether it solves your problem. The event occurs twice as there are two connection points for a connector.
diagram1.Model.EventSink.ConnectionsChanged += new CollectionExEventHandler(EventSink_ConnectionsChanged);
void EventSink_ConnectionsChanged(CollectionExEventArgs evtArgs) { if (evtArgs.ChangeType == CollectionExChangeType.Insert) { //NodeCollection nodes = evtArgs.Elements as NodeCollection; EndPoint conPoint = evtArgs.Element as EndPoint; ConnectorBase con = conPoint.Container as ConnectorBase; if (con != null && con.FromNode != null && con.ToNode != null) {
} } }
Regards, Dinesh
DMDomenico MozzoneDecember 1, 2009 08:15 AM UTC
Hi Dinesh, thank you very much for you help. Best Regards Domenico
DMDinesh M Syncfusion Team December 1, 2009 12:47 PM UTC