Hi,
I have found a problem, where when two or more links completely overlap, the link text is not shown and the StrokeThickness is set to 1. The following code will show the problem:
ShapeNode node1 = new ShapeNode() { Bounds = new Rect(10, 50, 20, 20) };
ShapeNode node2 = new ShapeNode() { Bounds = new Rect(80, 50, 20, 20) };
ShapeNode node3 = new ShapeNode() { Bounds = new Rect(150, 50, 20, 20) };
diagram.Nodes.Add(node1);
diagram.Nodes.Add(node2);
diagram.Nodes.Add(node3);
DiagramLink link1 = new DiagramLink(diagram, node1, node2);
link1.StrokeThickness = 5;
link1.Text = "Test";
DiagramLink link2 = new DiagramLink(diagram, node1, node3);
link2.StrokeThickness = 5;
link2.Text = "Test";
diagram.Links.Add(link1);
diagram.Links.Add(link2);
Maybe the removal of the text is intended, but the stroke thickness should not switch when the Links overlap in my opinion.
I attached the images of the result.
Best regards,
Cyrinael