Hi Stoyo
Currently I'm evaluating your diagramming components for our System. We want to visualize our scripts as flowcharts. Therefore I'm using ContainerNodes to visualize the scopes. I can connect ShapeNodes to the container, if they are beyond the container, but if i want to connect the ContainerNode with the components in the ContainerNode, the link is always forced outside the container first, before it connects to the component in the container. It seems the link is no child-component of the container, because if i collapse the container, the link is drawn anyway.
![wrongbehaviour.png wrongbehaviour.png](http://img8.imageshack.us/img8/7337/wrongbehaviour.png)
How can i achieve this behaviour:
![rightbehaviour.png rightbehaviour.png](http://img204.imageshack.us/img204/9112/rightbehaviour.png)
The following code reproduces the problem:
ContainerNode container = flowchart.Factory.CreateContainerNode(0, 0, 0, 0, true);
container.AnchorPattern = new MindFusion.Diagramming.AnchorPattern(new AnchorPoint[2] {
new AnchorPoint(50, 0),
new AnchorPoint(50, 100) });
ShapeNode node1 = flowchart.Factory.CreateShapeNode(0, 0, 50, 10);
node1.Text = "Node 1";
ShapeNode node3 = flowchart.Factory.CreateShapeNode(0, 0, 50, 10);
node3.Text = "Node 3";
ShapeNode node2 = flowchart.Factory.CreateShapeNode(0, 0, 50, 10);
node2.Text = "Node 2";
container.Add(node2);
node2.AnchorPattern = new MindFusion.Diagramming.AnchorPattern(new AnchorPoint[2] {
new AnchorPoint(50, 0),
new AnchorPoint(50, 100) });
DiagramLink toContainer = flowchart.Factory.CreateDiagramLink(node1, container);
DiagramLink inContainer1 = flowchart.Factory.CreateDiagramLink(container, node2);
inContainer1.OriginAnchor = 0;
inContainer1.DestinationAnchor = 0;
DiagramLink inContainer2 = flowchart.Factory.CreateDiagramLink(node2, container);
inContainer2.OriginAnchor = 1;
inContainer2.DestinationAnchor = 1;
DiagramLink fromContainer = flowchart.Factory.CreateDiagramLink(container, node3);
FlowchartLayout layout = new FlowchartLayout();
layout.Orientation = MindFusion.Diagramming.Layout.Orientation.Vertical;
layout.Arrange(flowchart);
Thanks in advance
Roman