Dragging - considerable distance from mouse pointer (Q1 2013)

4 posts, 0 answers
  1. Andrei
    Andrei avatar
    6 posts
    Member since:
    May 2012

    Posted 04 Mar 2013 Link to this post

    Dragging a field from the list, the field name is displayed at the considerable distance from mouse pointer.
    using RadDragAndDropManager

  2. Andrei
    Andrei avatar
    6 posts
    Member since:
    May 2012

    Posted 04 Mar 2013 Link to this post

    I try to use DragDropManager but was reproduced like behavior.

    Please help!
  3. DevCraft banner
  4. Andrei
    Andrei avatar
    6 posts
    Member since:
    May 2012

    Posted 05 Mar 2013 Link to this post

    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 ? ?
    }
  5. Andrei
    Andrei avatar
    6 posts
    Member since:
    May 2012

    Posted 06 Mar 2013 Link to this post

    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


Back to Top