pboc

Yo,

From WPF code behind, I would use the "shell object interface" IDragSourceHelper/IDropTargetHelper. And I'm a bit puzzled by the similarities between the "shell object interface" and the WPF "DragDrop" class... But I've the feeling that the WPF drag/drop between "shells" doesn't come for free.

In the end what should I do to get WPF drag/drop operation that works between "shells"



Re: Windows Presentation Foundation (WPF) WPF drag/drop operation that works between "shells"

Tamir Khason

WPF DragDrop operation are wrappers for OLEDragDrop. So you should get IDragData




Re: Windows Presentation Foundation (WPF) WPF drag/drop operation that works between "shells"

pboc

Thank you Tamir for your answer.

Still what should I do (how) to get "shell"-like behaviour during drag/drop. Example drag/drop with Vista Explorer, to get the thumbnail and the drag/drop effects (+ Copy)

drag/drop effects, OK, this must be the DragDropEffects. But what should I give to IDataObject to get image thumbnail (Image/BitmapSource/...) And moreover how to create the kind of tooltip surrounding the bitmap, is it that my one Adorner, or the system provides me something (...Drag/Drop newby questions...)

Cheers





Re: Windows Presentation Foundation (WPF) WPF drag/drop operation that works between "shells"

Tamir Khason

The best (and quickest) way for you is to use ready-made solutions, that using Adorners. This one for example. There are at least five t\like those




Re: Windows Presentation Foundation (WPF) WPF drag/drop operation that works between "shells"

LesterLobo - MSFT

you can also take a look at the drag drop library here

http://blogs.msdn.com/llobo/archive/2006/12/08/drag-drop-library.aspx