I’ve been playing around with the Draggable Link demo and have a question about the behaviour of the ports when a link is present. I am getting two different behaviors depending on how the link is created and I cannot figure out why.
If I modify the LinkSource collection within the DraggableLink constructor so that the link is linked between two objects (as opposed to to being open ended on one end). If I then move one of the two objects around on the diagram the link ports change depending on the orientation of the node being dragged.
However, if I drag and drop from the palette and create the same situation (2 nodes with a link between them), and I do the same behaviour, dragging one node around the other, the link port remains static, it doesn’t change from the one I selected.
What is causing the link ports to change in one situation and not the other? (If I relink the nodes in the first situation above the behavior then matches the second situation). In the program I am working on I prefer the link ports to remain static as in the second situation and therefor am trying to figure out how to stop it from happening. Anyone have any insight?