Diagram shape window position

2 posts, 0 answers
  1. Michael
    Michael avatar
    35 posts
    Member since:
    Jan 2012

    Posted 14 Feb 2013 Link to this post

    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
  2. Michael
    Michael avatar
    35 posts
    Member since:
    Jan 2012

    Posted 14 Feb 2013 Link to this post

    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!
  3. DevCraft banner
Back to Top