Leave a Reply

2 comments

  1. what's wrong with:

    Task targetTask = (e.OriginalSource as FrameworkElement).DataContext as Task;

    I guess you can forget about the difficult GetItemAtLocation, or am I missing something?

    Nelis Bijl Reply

  2. DragDrop.DoDragDrop returns only after the complete drag-drop process is finished,
    thus avoiding the need of the _isDragging flag

    This could also be the reason for hiding MouseMove events during a drag-drop operation. In fact DragOver is just a special form of MouseMove

    Nelis Bijl Reply