We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to set lineConnector to be readonly in manual layeout diagram

Thread ID:





102584 Feb 13,2012 06:57 AM UTC Feb 17,2012 12:24 PM UTC WPF 3
Tags: Diagram
Asked On February 13, 2012 06:57 AM UTC

I created a manual layout diagram with connections.

But the user can move and delete lineConnectors

I would like to know how to set connections to be read only

Ramya Thirugnanam [Syncfusion]
Replied On February 15, 2012 04:28 PM UTC

Hi Donna,
With regards to set LineConnector to be read only, this can be achieved by using the AllowMove and AllowDelete property of the Node respectively. Please refer to the following code snippet.

Code snippet:
Node node = new Node();
node.AllowDelete = false;
node.AllowMove = false;
Please let us know if you have any concerns,

Replied On February 16, 2012 08:45 AM UTC


I created a new project with LineConnector and still I can select ,move and delete line connectors.

Please check the attached example.


Ramya Thirugnanam [Syncfusion]
Replied On February 17, 2012 12:24 PM UTC

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,



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon