-
Notifications
You must be signed in to change notification settings - Fork 1k
Allow IDataObjectAsyncCapability #13431
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
base: main
Are you sure you want to change the base?
Conversation
Chromium based apps don't support file drop without using IDataObjectAsyncCapability. This includes the new Outlook. To support this we'll look for this interface in our current code paths and utilize it. This makes the async operation sync, which works, but isn't ideal. Chromium will pop a dialog that will leave WinForms modal as well until it is responded to. If this behavior creates an issue it can be disabled with the appcontext switch: "Windows.DragDrop.DisableSyncOverAsync" In order to truly support async we're also introducing a new interface to allow calling back off of the UI thread. This will be shipped as experimental for .NET 10 as there is a small risk we'll want to change the API based on real-world feedback. See dotnet#13422.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #13431 +/- ##
===================================================
+ Coverage 62.72993% 62.74328% +0.01334%
===================================================
Files 1562 1562
Lines 159997 159998 +1
Branches 14918 14918
===================================================
+ Hits 100366 100388 +22
+ Misses 58856 58833 -23
- Partials 775 777 +2
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks principally good to me.
I just had 2 questions.
But we should definitely get it over the finishline this week, so we have more time to test it.
Chromium based apps don't support file drop without using
IDataObjectAsyncCapability
. This includes the new Outlook.To support this, we'll look for this interface in our current code paths and utilize it. This makes the async operation sync, which works, but isn't ideal. Chromium will pop a dialog that will leave WinForms modal as well until it is responded to.
If this behavior creates an issue, it can be disabled with the AppContext switch: "Windows.DragDrop.DisableSyncOverAsync"
In order to truly support async we're also introducing a new interface to allow calling back off of the UI thread. This will be shipped as experimental for .NET 10 as there is a small risk we'll want to change the API based on real-world feedback. See #13422.
Microsoft Reviewers: Open in CodeFlow