I am generating a diagram in code. I add two rounded rectangles and then connect them with an OrthogonalConnector. I set the EnableRoundedCorners to true and the curveRadius to 10 (or anything). But, the diagram shows a crisp 90 degree corner. Here is he code I am using to create the connector:
private PathNode ConnectNodes(PathNode n1, PathNode n2)
{
OrthogonalConnector c1 = new OrthogonalConnector(n1.PinPoint, n2.PinPoint);
c1.EnableRoundedCorner = true;
c1.CurveRadius = 10;
c1.HeadDecorator.DecoratorShape = DecoratorShape.FilledCircle;
c1.HeadDecorator.Size = new SizeF(ARROW_HEAD_SIZE, ARROW_HEAD_SIZE);
c1.TailDecorator.DecoratorShape = DecoratorShape.FilledFancyArrow;
c1.TailDecorator.Size = new SizeF(ARROW_TAIL_SIZE, ARROW_TAIL_SIZE);
c1.LineStyle.LineColor = ARROW_DEFAULT_COLOR;
c1.LineStyle.LineWidth = ARROW_LINE_WIDTH;
n1.CentralPort.TryConnect(c1.HeadEndPoint);
n2.CentralPort.TryConnect(c1.TailEndPoint);
myDiagram.Model.AppendChild(c1);
return c1;
}
What am I doing wrong? Thanks.