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_8add0bc7.zip