Can't get Connector Rounded Corners to display
I am generating a diagram in code. I add two rounded rectangles and then connect them with an OrthogonalConnector. I set the EnableRoundedCorners to true and the curveRadius to 10 (or anything). But, the diagram shows a crisp 90 degree corner. Here is he code I am using to create the connector:
private PathNode ConnectNodes(PathNode n1, PathNode n2)
{
OrthogonalConnector c1 = new OrthogonalConnector(n1.PinPoint, n2.PinPoint);
c1.EnableRoundedCorner = true;
c1.CurveRadius = 10;
c1.HeadDecorator.DecoratorShape = DecoratorShape.FilledCircle;
c1.HeadDecorator.Size = new SizeF(ARROW_HEAD_SIZE, ARROW_HEAD_SIZE);
c1.TailDecorator.DecoratorShape = DecoratorShape.FilledFancyArrow;
c1.TailDecorator.Size = new SizeF(ARROW_TAIL_SIZE, ARROW_TAIL_SIZE);
c1.LineStyle.LineColor = ARROW_DEFAULT_COLOR;
c1.LineStyle.LineWidth = ARROW_LINE_WIDTH;
n1.CentralPort.TryConnect(c1.HeadEndPoint);
n2.CentralPort.TryConnect(c1.TailEndPoint);
myDiagram.Model.AppendChild(c1);
return c1;
}
What am I doing wrong? Thanks.
SIGN IN To post a reply.
3 Replies
NG
Naganathan Ganesh Babu
Syncfusion Team
May 18, 2015 07:17 AM UTC
Hi Bob,
Thanks for using Syncfusion product.
We are unable to reproduce reported issue at our end. We have using your code snippet and create a simple sample to achieve your requirement. Please refer the below attached sample and video for your references.
Here is the video:
Video
Here is the sample:
Sample
Please let us know if any concerns.
Regards,
Naganathan K G
Thanks for using Syncfusion product.
We are unable to reproduce reported issue at our end. We have using your code snippet and create a simple sample to achieve your requirement. Please refer the below attached sample and video for your references.
Here is the video:
Video
Here is the sample:
Sample
Please let us know if any concerns.
Regards,
Naganathan K G
BP
Bob Puckett
May 20, 2015 05:38 PM UTC
Thank you for the reply. When I try your sample, it does work.
Apparently, the issue is that when LineBridging is enabled (in the property editor), rounding does not work. Using:
myDiagram.Model.LineBridgingEnabled = false;
Makes the rounded corners work correctly.
Is this a bug or intended behavior?
Thanks very much for your help.
SG
Shyam G
Syncfusion Team
May 21, 2015 05:19 AM UTC
Hi Bob
Thanks for your update.
We are able to reproduce the reported issue at our end and logged a report on this. Also we have created a support incident under your account to track the status of this issue.
Please log on to our support website to check for further updates.
https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents
Please let me know if you have any questions.
Regards,
Shyam G
Thanks for your update.
We are able to reproduce the reported issue at our end and logged a report on this. Also we have created a support incident under your account to track the status of this issue.
Please log on to our support website to check for further updates.
https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents
Please let me know if you have any questions.
Regards,
Shyam G
SIGN IN To post a reply.
- 3 Replies
- 3 Participants
-
BP Bob Puckett
- May 15, 2015 03:22 PM UTC
- May 21, 2015 05:19 AM UTC