This is a migrated thread and some comments may be shown as answers.
Dragcue position
2 Answers 33 Views
This is a migrated thread and some comments may be shown as answers.
Voss Grose
Top achievements
Rank 1
Voss Grose asked on 05 Dec 2009, 07:57 PM
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 Answers, 1 is accepted

Sort by
0
Kiril Stanoev
Telerik team
answered on 08 Dec 2009, 03:30 PM
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.
0
Voss Grose
Top achievements
Rank 1
answered on 09 Dec 2009, 01:37 AM
Perfect..exactly what I needed...thanks.
Asked by
Voss Grose
Top achievements
Rank 1
Answers by
Kiril Stanoev
Telerik team
Voss Grose
Top achievements
Rank 1
Share this question
or