Hi,
I'm looking into using the DiagramConnection to display nodes and connections between them. However, I noticed a problem in that if there are two or more connections between the same two nodes - they will display on ontop of the other, thus hiding each other. Is there a way to create an offset between connections when there is more than one connection between the same two nodes, so that both connections will be clearly shown?
Thank you.
Hello Elad,
The xamDiagram control doesn’t provide build-in mechanism for detecting overlapping connections.
Still you can configure the start and end points absolutely by specifying Start/End Points coordinates and thus providing some offset.
http://ko.infragistics.com/help/wpf/xamdiagram-configuring-the-start-and-end-of-diagram-connections
Also you can configure different visual aspects of the connections as fill, stroke, thickness and the connections caps.
http://ko.infragistics.com/help/wpf/xamdiagram-configuring-the-caps-of-diagram-connections
http://ko.infragistics.com/help/wpf/xamdiagram-look-and-feel
I’ve attached a sample application that demonstrates a connections modification.
The problem is that if I provide absolute Start/End points, they will need to be constantly updated if the user moves the nodes around (a connection to the left of the node might have to move to the right of the node if the node is moved) and I don't see an option to implement such a mechanism/logic.
Different visual aspects for the connections could be a viable solution, if I could insure that all connections are seen and easily distinguished, but as it stands - when there are two or more connections between the same node, they overlap and one hides the other.
Are there any other suggestions? Thank you.