Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Drag and drop a file onto a WPF application

Drag and drop a file onto a WPF application

Scheduled Pinned Locked Moved The Lounge
csharpwpfquestion
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    astibich2
    wrote on last edited by
    #1

    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

    L T P 3 Replies Last reply
    0
    • A astibich2

      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

      L Offline
      L Offline
      lewax00
      wrote on last edited by
      #2

      You'll probably have better luck in QA[^]

      1 Reply Last reply
      0
      • A astibich2

        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

        T Offline
        T Offline
        TheGreatAndPowerfulOz
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        • A astibich2

          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

          P Offline
          P Offline
          Paul Conrad
          wrote on last edited by
          #4

          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

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups