Windows 10: WPF: Drag & Drop virtual folder from WPF to File Explorer

Discus and support WPF: Drag & Drop virtual folder from WPF to File Explorer in Windows 10 Software and Apps to solve the problem; Hi, I am developing ADB Explorer, a UI for ADB in WPF.I am trying to implement support for Drag & Drop to Push / Pull files between PC and an Android... Discussion in 'Windows 10 Software and Apps' started by Alex4SSB, Aug 23, 2024.

  1. Alex4SSB Win User

    WPF: Drag & Drop virtual folder from WPF to File Explorer


    Hi, I am developing ADB Explorer, a UI for ADB in WPF.I am trying to implement support for Drag & Drop to Push / Pull files between PC and an Android device, and while accepting files dragged into the app is quite easy since I can just use the provided path, its the other direction that I still can't get right. Namely, dragging a folder from the app to File Explorer.I started by using VirtualFileDataObject class to transfer the files as streams, which is what's usually recommended for files that do not yet exist on the PC, but since ADB works best when transferring files instead

    :)
     
    Alex4SSB, Aug 23, 2024
    #1
  2. MrSeanKon Win User

    Enable visual styles in WPF application

    EUREKA!

    Steps:
    1) I made a Windows form (HostWPF namespace, Form1 is the form).
    2) I added a reference => System.Windows.Forms.Integration which contains classes that enable interoperation between the Windows Forms and WPF technologies. When you use System.Windows.Forms.Integration classes, you can host Windows Forms controls on WPF pages, and WPF elements in Windows Forms-based applications.
    3) Then added a control (damn Vi$ual $tudio 2010 does not allow to add a WPF window) but after adding I edited the XMAL code in the way I want *Wink WPF: Drag & Drop virtual folder from WPF to File Explorer ;)
    4) The next steps are simple. Download the first attachment. But => see the photo.
    It crashes!!!!!
    5) Finally???
    We must use System.Windows.Forms.Application.Exit(); command because the WPF window behaves like a classical Windows Form.
    Download the second attachment. Note that the Windows form's name is Initial.
    Enjoy!
     
    MrSeanKon, Aug 23, 2024
    #2
  3. Enable visual styles in WPF application

    I think WPF is incompatible with Visual Styles. Visual Styles is for WinForms. WPF is an entirely different animal.
     
    FordGT90Concept, Aug 23, 2024
    #3
  4. MrSeanKon Win User

    WPF: Drag & Drop virtual folder from WPF to File Explorer

    Terminate WPF/Windows forms applications....

    WPF has no concept of MDI applications. In fact Microsoft is trying to discourage any one using that form of application. I'm new to WPF and I really like MDI applications. It allows me to move quickly between windows and compare the content of different windows. Furthermore, sometime the content of one window is useful for another so I can copy and paste. I think it's a great user experience for working mode.
    To continue, download the attachment!
    It includes two folders, they are very simple code.
    The point is how you can terminate an application (Windows Form and WPF).
     
    MrSeanKon, Aug 23, 2024
    #4
Thema:

WPF: Drag & Drop virtual folder from WPF to File Explorer

Loading...
  1. WPF: Drag & Drop virtual folder from WPF to File Explorer - Similar Threads - WPF Drag Drop

  2. WPF: Drag & Drop virtual folder from WPF to File Explorer

    in Windows 10 Gaming
    WPF: Drag & Drop virtual folder from WPF to File Explorer: Hi, I am developing ADB Explorer, a UI for ADB in WPF.I am trying to implement support for Drag & Drop to Push / Pull files between PC and an Android device, and while accepting files dragged into the app is quite easy since I can just use the provided path, its the other...
  3. Drag & Drop Files between virtual desktops?

    in Windows 10 Gaming
    Drag & Drop Files between virtual desktops?: How to drag & drop files between virtual desktops? https://answers.microsoft.com/en-us/windows/forum/all/drag-drop-files-between-virtual-desktops/d2d27ef0-a5c8-48b6-af69-4fe9f5041266
  4. Drag & Drop Files between virtual desktops?

    in Windows 10 Software and Apps
    Drag & Drop Files between virtual desktops?: How to drag & drop files between virtual desktops? https://answers.microsoft.com/en-us/windows/forum/all/drag-drop-files-between-virtual-desktops/d2d27ef0-a5c8-48b6-af69-4fe9f5041266
  5. Drag & Drop Files between virtual desktops?

    in Windows 10 BSOD Crashes and Debugging
    Drag & Drop Files between virtual desktops?: How to drag & drop files between virtual desktops? https://answers.microsoft.com/en-us/windows/forum/all/drag-drop-files-between-virtual-desktops/d2d27ef0-a5c8-48b6-af69-4fe9f5041266
  6. Feature Support - #WPF #WinUI

    in Windows 10 Software and Apps
    Feature Support - #WPF #WinUI: Hi Microsoft Team,Is it possible to get the Toast Notification with Buttons, ComboBox or other controls which can be added to it?Until Now, the Toast Notification has not seen any improvement in WPF and its stayed the same like in WinForms. Thanks and RegardsShreyas...
  7. Drag&drop-Extract from 7-Zip FM into Windows Explorer folder disables dragging files in...

    in Windows 10 Network and Sharing
    Drag&drop-Extract from 7-Zip FM into Windows Explorer folder disables dragging files in...: Reproduce I downloaded this latest blender alpha build zip-file https://builder.blender.org/download/ and extracted it's contents to replace update my existing application files of same app on my drive. The zip-file and archived subfolder path taken from 7-Zip File...
  8. convert *.wpf file to *.doc word file

    in Windows 10 Network and Sharing
    convert *.wpf file to *.doc word file: How can I convert old WordPerfect *.WFP files to Word *.DOC files? https://answers.microsoft.com/en-us/windows/forum/all/convert-wpf-file-to-doc-word-file/0752f9eb-baf6-4d6b-9816-93530495ea8a
  9. file explorer drag and drop

    in Windows 10 Network and Sharing
    file explorer drag and drop: After my last update there is no right pane in the file explorer to drag and drop files. Please advise. https://answers.microsoft.com/en-us/windows/forum/all/file-explorer-drag-and-drop/f2190733-2938-485c-880e-58d172f73f16
  10. Can't Drag and Drop files from File Explorer suddenly

    in Windows 10 Network and Sharing
    Can't Drag and Drop files from File Explorer suddenly: I was editing a video earlier today and dragged a file from file explorer into Adobe Premiere, but then immediately after it wouldn't let me drag the same file back in when I had deleted it from the timeline I was working on. I thought it was no big deal, just went to the...