Hi,
for some reason the connected DiagramLinks which are connected to a DiagramNode loose the information of the OriginAnchor and DestinationAnchor after the DiagramNode was sent to back.
I get the links on the DiagramNode using GetAllLinks(). And the DiagramLinks are added in code:
var diagramLink = new DiagramLink(diagram)
{
Origin = originDiagramNode,
OriginAnchor = originAnchorIndex,
Destination = destinationDiagramNode,
DestinationAnchor = destinationAnchorIndex,
CascadeOrientation = Orientation.Auto,
CustomDraw = CustomDraw.Full,
Shape = LinkShape.Cascading,
Dynamic = false,
AutoRoute = true,
StrokeThickness = 10.0,
HeadPen = new Pen(Brushes.Black, 10.0),
Stroke = Brushes.Black,
HandlesStyle = HandlesStyle.SquareHandles,
HeadShape = ArrowHeads.Arrow,
ClipToBounds = false
};
diagram.Links.Add(diagramLink);
After adding the link the OriginAnchor and the DestinationAnchor are correct.
Anyone ancounter this behavior before?
thanks,
Christoph