Dragcue position

3 posts, 0 answers
  1. Voss Grose
    Voss Grose avatar
    81 posts
    Member since:
    Sep 2012

    Posted 05 Dec 2009 Link to this post

    Is it possible to get the position of the DragCue  while dragging?

    There is a e.Options.CurrentDragPoint, but that's not always the correct position of the DragCue...just the correct position of the mouse cursor.

  2. Kiril Stanoev
    Admin
    Kiril Stanoev avatar
    1512 posts

    Posted 08 Dec 2009 Link to this post

    Hello Voss,

    If your drag cue is UI element, then you can use the UIElement.TransformToVisual method to retrieve its position:

    UIElement dragCue = e.Options.DragCue as UIElement;
    Point cuePosition = dragCue.TransformToVisual(null).Transform(new Point());

    Let me know if this is of any help.


    Greetings,
    Kiril Stanoev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. DevCraft banner
  4. Voss Grose
    Voss Grose avatar
    81 posts
    Member since:
    Sep 2012

    Posted 08 Dec 2009 Link to this post

    Perfect..exactly what I needed...thanks.
Back to Top