We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

can''t connect custom node

I am trying to connect two nodes: ellipse and my own custom node (which is implemented as a Group). The followng code fragment demostrates this:

StatementNode statementNode = new StatementNode();
statementNode.StatementText = "Statement text"; this.paletteGroupView1.Palette.AppendChild(statementNode);

Ellipse ellipse = new Ellipse(160, 60, 100, 60); this.diagram1.Model.AppendChild(ellipse);

LineConnector connection = new LineConnector(PointF.Empty, new PointF(100, 100));
causality.LineStyle.LineColor = Color.BlueViolet; this.diagram1.Model.AppendChild(connection);
statementNode.CentralPort.TryConnect(causality.TailEndPoint); ellipse.CentralPort.TryConnect(causality.HeadEndPoint);

Now, if I move the ellipse to new location - all is ok. But, if I move my custom node - ellipse and node are not connected. It seems to me that the connection with node wasn't established programmatically

I have attached the sample for more clarification. Could you explain me what's wrong?

Thanks a lot



Syncfusion_Diagram_1cf60b81.zip

1 Reply

AD Administrator Syncfusion Team November 26, 2008 01:37 PM UTC

I'm so sorry:) Just ignore this post, I've found the problem and this was my fault. Sorry for inconvenience


Loader.
Live Chat Icon For mobile
Up arrow icon