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

Dragging - considerable distance from mouse pointer (Q1 2013)

3 Answers 30 Views
ListBox
This is a migrated thread and some comments may be shown as answers.
Andrei
Top achievements
Rank 1
Andrei asked on 04 Mar 2013, 09:45 AM
Dragging a field from the list, the field name is displayed at the considerable distance from mouse pointer.
using RadDragAndDropManager

3 Answers, 1 is accepted

Sort by
0
Andrei
Top achievements
Rank 1
answered on 04 Mar 2013, 03:47 PM
I try to use DragDropManager but was reproduced like behavior.

Please help!
0
Andrei
Top achievements
Rank 1
answered on 05 Mar 2013, 03:30 PM
using RadDragAndDropManager i found this:


private void OnDragQuery(object sender, DragDropQueryEventArgs e)
{
       // e.Option.CurrentDragPoint == {100,20}
       // e.Option.MouseClickPoint == {100,20} 
       //e.Option.Relative Drag Point == {0,0} ->   why this zero ? ?
}
0
Andrei
Top achievements
Rank 1
answered on 06 Mar 2013, 09:48 AM
I found solution:
if using  DragDropManager: 
private void OnDragInitializeHandler(object sender, DragInitializeEventArgs args)
 {
      args.DragVisualOffset = args.RelativeStartPoint;
 }

using RadDragAndDropManager:
need in constructor   App.xaml   add:
public App()
{
   RadDragAndDropManager.ExecutionMode = DragExecutionMode.Legacy;
 
   InitializeComponent();
}

thanks to all


Tags
ListBox
Asked by
Andrei
Top achievements
Rank 1
Answers by
Andrei
Top achievements
Rank 1
Share this question
or