File Drag and Drop Not Working #17117
Answered
by
maguro1kan
maguro1kan
asked this question in
Q&A
-
I have set DragDrop.AllowDrop to True on a Window or Border, but the Drop method does not respond when I drag a file onto the application window. Could you please provide a solution? MainWindow.axaml
MainWindow.axaml.cs
Desktop.2024.09.25.-.16.22.13.33.mp4 |
Beta Was this translation helpful? Give feedback.
Answered by
maguro1kan
Sep 27, 2024
Replies: 1 comment 3 replies
-
You can't call SetApartmentState on already running thread. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Resolved.
The issue was that Drag and Drop did not work when opening the project from the “Recent items” list in Visual Studio 2022. I discovered that Drag and Drop becomes enabled if I open the project by right-clicking the .sln file and selecting "Open with" -> "Visual Studio 2022".