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.
Unfortunately, activation email could not send to your email. Please try again.

can''t connect custom node

Thread ID:

Created:

Updated:

Platform:

Replies:

78060 Nov 26,2008 07:52 AM Nov 26,2008 08:37 AM Windows Forms 1
loading
Tags: Diagram
Administrator [Syncfusion]
Asked On November 26, 2008 07:52 AM

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

Administrator [Syncfusion]
Replied On November 26, 2008 08:37 AM

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


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;