Hello Telerik,
I'm using a RadDiagram containing shapes. These shapes has TextBlock to display some text.
I search to get the position of a TextBlock inside this RadDiagram.
I did it (tb is a TextBlock and Me.MirBuilderDiagram is a RadDiagram) :
tb.TransformToAncestor(
Me
.MirBuilderDiagram).Transform(
New
Point(0, 0))
The problem is that values are false : the top-left corner of the RadDiagram is set to 20;20, and for a TextBock next to this corner, I get the wrong value. I tried to get the position with the parent of the RadDiagram (a Grid), but I have the same result.
I attached 2 screenshots with :
- raddiagram : showing you the visual RadDiagram
- debug : showing you the debug with an attached watcher.
How I can get the good values ?
Thank you.