This is a migrated thread and some comments may be shown as answers.

RadDiagram routing sample have different result (newbie)

1 Answer 83 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
Al
Top achievements
Rank 1
Al asked on 27 Jul 2020, 03:36 PM

Hello,

I have copied the Example 1 XAML code from

https://docs.telerik.com/devtools/wpf/controls/raddiagram/features/routing

but the result is not the one shown in Figure 1 of the same link, but the one in the attached image. What is the difference? I have tried changing the DiagramConstants.RoutingGridSize constant, but it does not solve the issue.

Someone can help me?

Thank you!

1 Answer, 1 is accepted

Sort by
0
Accepted
Petar Mladenov
Telerik team
answered on 28 Jul 2020, 06:50 AM

Hello Albino,

It's a miss in our documentation but this picture under example 1 is done with AStarRouter. This is the router we highly recommend for optimal performance and visual results. In code you need to set:

  this.xDiagram.RoutingService.Router = new AStarRouter(this.xDiagram);
 (xDiagram is the x:Name of diagram in XAML).

Regards,
Petar Mladenov
Progress Telerik

Tags
Diagram
Asked by
Al
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Share this question
or