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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

check if port already connected

Thread ID:

Created:

Updated:

Platform:

Replies:

115626 Jan 27,2014 02:47 PM UTC Jan 28,2014 12:13 PM UTC WPF 1
loading
Tags: Diagram
Abdallah Rabah
Asked On January 27, 2014 02:47 PM UTC

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



Parthiban A [Syncfusion]
Replied On 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

CONFIRMATION

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.

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

;