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

Diagram shape window position

1 Answer 36 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Veteran
Iron
Michael asked on 14 Feb 2013, 09:29 AM
Hy telerik team!

Is it possible to get the window position of an shape item. 
The only position i had found is the position of the shape in the diagram.

cheers mike

1 Answer, 1 is accepted

Sort by
0
Michael
Top achievements
Rank 1
Veteran
Iron
answered on 14 Feb 2013, 10:27 AM
I have found a solution:

var transform = ((UIElement)shape).TransformToVisual(Application.Current.RootVisual);
Point absolutePosition = transform.Transform(new Point(0, 0));

That works for me!
Tags
Diagram
Asked by
Michael
Top achievements
Rank 1
Veteran
Iron
Answers by
Michael
Top achievements
Rank 1
Veteran
Iron
Share this question
or