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

Geometry from RadDiagram to string

2 Answers 139 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
Svyatoslav
Top achievements
Rank 1
Svyatoslav asked on 22 Aug 2018, 08:24 AM

Hi. I'm trying to create a constructor for create a shapes. I have a problem with extracting geometry from RadDiagram.  I need to get the geometry in string format from all the drawn elements. This topic has already been discussed here 2 years ago https://www.telerik.com/forums/geometry-to-xaml. Now I make it so that for each coordinate in the geometry I add a position, but for some reason there is a shift to the left and down. What could be the problem? For example i have geometry for picture 1:   

shape1: M0.5,0.5L111.5,0.5 111.5,74.5 0.5,74.5z , position: 300, 290

shape2: M0.5,0.5L111.5,0.5 111.5,74.5 0.5,74.5z, position: 360, 230

and geometry for picture 2: M300.5,290.5L411.5,290.5 411.5,364.5 300.5,364.5 M360.5,230.5L471.5,230.5 471.5,304.5 360.5,304.5

 

2 Answers, 1 is accepted

Sort by
0
Svyatoslav
Top achievements
Rank 1
answered on 22 Aug 2018, 08:56 AM
if we only use the pencil tool, no shift occurs
0
Svyatoslav
Top achievements
Rank 1
answered on 28 Aug 2018, 07:40 AM
Hey. I still need help.
Tags
Diagram
Asked by
Svyatoslav
Top achievements
Rank 1
Answers by
Svyatoslav
Top achievements
Rank 1
Share this question
or