Hi Stoyan,
To reproduce, please modify your method as follows:
void CreateTestContainer()
{
var ctr = diagram.Factory.CreateContainerNode(20, 50, 200, 200);
ctr.Caption = "right-click me";
var n2 = diagram.Factory.CreateShapeNode(120, 150, 50, 50);
n2.AnchorPattern = null;
n2.AttachTo(ctr, GroupAnchorStyles.Top | GroupAnchorStyles.Left | GroupAnchorStyles.Bottom);
ctr.Add(n2);
var n1 = diagram.Factory.CreateShapeNode(40, 70, 50, 50);
n1.AnchorPattern = AnchorPattern.Decision1In3Out;
ctr.Add(n1);
var l = diagram.Factory.CreateDiagramLink(n1, n2);
l.ControlPoints.Insert(1, new Point(105, 210));
l.UpdateFromPoints(false, true);
}
It basically has to do with:
* The order of the nodes creation, and
* The attaching of the first created node to the container (a fact that I did not mention initially, thinking it's not relevant).
You can then also modify the offset from 10 to 100, to make this more obvious.
Best Regards,
-Mihai