Add IAsyncDropTarget to allow consuming async capable drops #13422
Labels
api-ready-for-review
(2) API is ready for formal API review; applied by the issue owner
blocking
Used by the API Review Board
needs-area-label
Milestone
Background and motivation
IDataObjectAsyncCapability allows drag drop sources to provide data asynchronously. We don't currently have a way to consume this in WinForms.
Chromium based apps require using this interface for receiving any file drops. The new Outlook falls in this category and you cannot drag messages from it without this support. It pops a dialog during the drop, which would make the target app freeze without async support.
To fully enable this scenario, we want to add
IAsyncDropTarget
thatControl
s can implement to opt into getting called back asynchronously when that is supported.API Proposal
API Usage
Alternative Designs
There aren't a lot of great options that don't deviate significantly from the existing patterns you get from IDropTarget.
Risks
Not many async providers out there to vet the design. As such we might make this experimental for .NET 10.
Will this feature affect UI controls?
No localization or accessibility considerations.
The text was updated successfully, but these errors were encountered: