Hi Donna,
Sorry for the inconvenience caused.
With regards to set the LineConnector to be read only, we have modified the provided sample to represent your requirement. Please refer to the sample from the attachment.
1. Disable Moving the LineConnector: this can be achieved by providing the false to the IsDecoratorMovable property of the LineConnector. Please refer to the code snippet.
Code snippet:
line.IsDecoratorMovable = false;
2.Disable Deleting the LineConnector:this can be achieved by using ConnectorDeleting Event of the DiagramView. Please refer to the code snippet.
Code snippet:
//Register the ConnectorDeleting event
this.diagramView.ConnectorDeleting += new ConnectionDeleteEventHandler(diagramView_ConnectorDeleting);
//ConnectorDeleting event
void diagramView_ConnectorDeleting(object sender, ConnectionDeleteRoutedEventArgs evtArgs)
{
//disable deleting
evtArgs.Cancel = true;
}
Please let us know if you have any concerns,
Regards,
Ramya
ManualLayoutDiagram_4d27e4a6.zip