-
Notifications
You must be signed in to change notification settings - Fork 700
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WinUI 3 Desktop: Drag and drop file from Explorer to app window does not work #10119
Comments
Hi I'm an AI powered bot that finds similar issues based off the issue title. Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one. Thank you! Closed similar issues:
|
That's so strange. I've let others test it as well. For some it works, for others it does not. Is there some kind of Windows settings that could block this? |
|
Thanks for pointing this out. However neither Grid_Drop nor Grid_DragOver or Grid_DragEnter is being called, so I don't even come to the point where it could crash. |
@Iomegan The problem is that all of the pointer events get broken and stop functioning correctly as you are experiencing once |
@kmgallahan I did.
|
Changing |
Describe the bug
I have the following simple WinUI 3 Desktop app running on Window 11. Dragging a file from the Explorer into the window does not work.
Grid_DragOver()
is not being called. You just get the red cursor symbol as if drop is not allowed.Strangely it works if I drag a file from the Recent items in the Start section of the Explorer. But all other places like the Desktop don't work.
Steps to reproduce the bug
MainWindow.xaml:
MainWindow.xaml.cs:
Expected behavior
Dragging files from the explorer onto a
AllowDrop="True"
enabled view should work.Screenshots
This one works:
This does not:
NuGet package version
WinUI 3 - Windows App SDK 1.6.1: 1.6.240923002
Windows version
Windows Insider Build (xxxxx), Windows 11 (22H2): Build 22621
Additional context
Edition Windows 11 Pro
Version 24H2
OS build 26100.2161
Experience Windows Feature Experience Pack 1000.26100.32.0
The text was updated successfully, but these errors were encountered: