MF
Meera Fathima
Syncfusion Team
June 13, 2007 12:47 PM UTC
Hello Faheem,
If you are using v4.4 of Essential Diagram, you can restrict the connection from being moved by calling the Diagram.Model.ConnectionChanging event and cancelling the action. Below is the sample code snippet that shows the above informations.
this.diagram1.Model.ConnectionsChanging += new ConnectionCollectionEventHandler(Model_ConnectionsChanging);
void Model_ConnectionsChanging(object sender, ConnectionCollectionEventArgs evtArgs)
{
if (evtArgs.ChangeType == CollectionExChangeType.Remove)
{
MessageBox.Show(" Connection has been changed");
evtArgs.Cancel = true;
}
}
Or if you are using v5.1 of Essential Diagram, there is a known issue with moving the endpoint of the connection. Please post a new DT incident to get the details about the issue status.
Thanks for using Essential Diagram.
Best Regards,
Meera.