I got this weird problem in Drag & Drop events, that I cannot figure out.
I am trying to make Drag & Drop work in my plain simple WPF application.
If I Drag a Contact Card from Microsoft Lync 2010 to my WPF program, then I am not allowed to.
There is no "DragEnter", "DragOver" or "Drop" event in my WPF application.
But if I do a Drag & Drop from applications like Word, Internet Explorer or Google Chrome it works fine. I get "DragEnter", "DragOver" and "Drop" events.
The wired part come now. If I do the same in a WinForm application, it works as expected when I do a Drag & Drop of a Contact Card from Microsoft Lync.
I feel, I need to setup something up in my WPF application, perhaps some low level debugging ?
- In my WPF and WinForm I have set "AllowDrop" to true
In "DragOver" event, I have set e.Effects = DragDropEffects.Copy and e.Handled = true.
what did you try? when you say "no DragEnter event, etc. in you application", where did you look at?
A Window, for instance, has events such as "DragEnter", "DragLeave", etc. but they won't get raised if "AllowDrop" is set to false. Is that your problem?
EDIT1: accidently posted this as solution - it was intended as comment...
Edited 28-Nov-12 22:07pm
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)