Hi !
I tried the compositeNode and it seems much more flexible.
I also get some Anchors in the node. But I canīt connect the anchors.
Can you tell me whatīs wrong here?
static public CompositeNode EntityCompCreate(Diagram diagram, ImageList images, string EntityName)
{
CompositeNode node = new CompositeNode(diagram);
node.Bounds = new RectangleF(10, 10, 60, 40);
node.Brush = new LinearGradientBrush(Color.RoyalBlue, Color.LightSkyBlue, 45);
StackPanel panel = new StackPanel();
panel.Orientation = MindFusion.Diagramming.Components.Orientation.Horizontal;
panel.Spacing = 1;
node.Components.Add(panel);
AnchorPoint ptin = new AnchorPoint(30, 46, true, false, Color.Red, 0);
ptin.MarkStyle = MarkStyle.Circle;
AnchorPoint ptout = new AnchorPoint(60, 46, false, true, Color.Red, 3);
ptout.MarkStyle = MarkStyle.Circle;
node.AnchorPattern = new AnchorPattern();
node.AnchorPattern.Points.Add(ptin);
node.AnchorPattern.Points.Add(ptout);
diagram.Nodes.Add(node);
return node;
}