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. Image for the cookie policy date

check if port already connected

Hi ,

I am facing an other problem , is there any way to determine if a port is already connect or not ? because I am trying to district the connection from output ports  so that every one can be used just once as Head port

best regards

abdallah rabah



1 Reply

PA Parthiban A Syncfusion Team January 28, 2014 12:13 PM UTC

Hi Abdallah,

We don’t have property to check whether port is connected. But we have to write own logic to check status of port. We have created a sample in which, we created CustomPort having property named “IsConnected”. The IsConnected property is being updated in ConnectorDragEnd event. Connector drag end event will be fired whenever the connector ends are dragged. By checking the IsConnected property we can allow connector to connect that port. Hence we can restrict the connection port to be connected to single line at a time.  For more information kindly refer the attached sample.

You can also refer our dash board sample InPortOutPort Demo,

WPF à Diagram à Editable Diagram àInPortOutPortDemo

Regards,

Parthiban A.



PortRestriction_9c9a088c.zip

Loader.
Live Chat Icon For mobile
Up arrow icon