Drag and drop a file onto a WPF application
-
Seems like this should be easy, but I can't get the 'Drop' event to fire on my WPF application main window. Here's a my demo application: When I drag and drop a file from the desktop onto the application window, I get the 'no entry' cursor during the drag, and 'Window_Drop' is not called after I drop. In fact I can't seem to get any event to fire during the file drag operation: 'DragEnter', 'DragOver', 'MouseMove', etc. What am I doing wrong? Aaron
-
Seems like this should be easy, but I can't get the 'Drop' event to fire on my WPF application main window. Here's a my demo application: When I drag and drop a file from the desktop onto the application window, I get the 'no entry' cursor during the drag, and 'Window_Drop' is not called after I drop. In fact I can't seem to get any event to fire during the file drag operation: 'DragEnter', 'DragOver', 'MouseMove', etc. What am I doing wrong? Aaron
-
Seems like this should be easy, but I can't get the 'Drop' event to fire on my WPF application main window. Here's a my demo application: When I drag and drop a file from the desktop onto the application window, I get the 'no entry' cursor during the drag, and 'Window_Drop' is not called after I drop. In fact I can't seem to get any event to fire during the file drag operation: 'DragEnter', 'DragOver', 'MouseMove', etc. What am I doing wrong? Aaron
Wrong forum dude. Try the XAML or WPF forums
If your actions inspire others to dream more, learn more, do more and become more, you are a leader." - John Quincy Adams
You must accept one of two basic premises: Either we are alone in the universe, or we are not alone in the universe. And either way, the implications are staggering” - Wernher von Braun -
Seems like this should be easy, but I can't get the 'Drop' event to fire on my WPF application main window. Here's a my demo application: When I drag and drop a file from the desktop onto the application window, I get the 'no entry' cursor during the drag, and 'Window_Drop' is not called after I drop. In fact I can't seem to get any event to fire during the file drag operation: 'DragEnter', 'DragOver', 'MouseMove', etc. What am I doing wrong? Aaron
No programming questions in the Lounge... Technical discussions are welcome, but if you need specific help please use the programming forums. Right at the top of the page :doh:
""Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon