DragDrop OnDragLeave

Apr 5, 2010 at 12:11 PM
Edited Apr 5, 2010 at 12:12 PM

Paven,

I am using your FluidKit for a few things, and I really like it.  For Drag/Drop, I have to highlight the drag target on DragEnter, and remove the highlight on DragLeave.  The former is easy, since I can highlight in GetVisualFeedback, but there is no indication to when the drag leave occurs.

The mod to your code is simple.  Would you mind taking this contribution?

In IDropTargetAdvisor:

void OnDragLeave(IDataObject obj);

It can get called in DragDropManager.DropTarget_PreviewDragLeave with the following code:

if (CurrentDropTargetAdvisor.IsValidDataObject(e.Data))
{
    CurrentDropTargetAdvisor.OnDragLeave(e.Data);
if (CurrentDropTargetAdvisor.IsValidDataObject(e.Data))
{
    CurrentDropTargetAdvisor.OnDragLeave(e.Data);
}

Thanks,

Brian

 

 

 

 

Coordinator
Apr 5, 2010 at 3:20 PM

Hi Brian,

     We can sure add this. I would suggest putting up a patch on codeplex describing this change. Eventually this will be added to the main branch after some community testing. Since the library is in source form we can take this liberty.

 

Hope that works.

 

 

Cheers,

Pavan

May 20, 2010 at 1:45 PM

Pavan,

A while back, I submitted the patch to make this happen.  Any thoughts on incorporating it?

Thanks,

Brian