Skip to content
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

When dragging and dropping ListView items, use e.Data.SetDataProvider (StandardDataFormats. StorageItems, MyDataProviderHandle) ; Unable to implement delayed data provision. #9629

Open
a2596519067 opened this issue May 13, 2024 · 1 comment
Labels
area-Lists ListView, GridView, ListBox, etc bug Something isn't working team-Controls Issue for the Controls team

Comments

@a2596519067
Copy link

a2596519067 commented May 13, 2024

Describe the bug

When dragging and dropping ListView items, use e.Data.SetDataProvider(StandardDataFormats. StorageItems, MyDataProviderHandle) ; Unable to implement delayed data provision.
I want to use e.Data.SetDataProvider() to delay providing data because I have a very time-consuming operation (decompressing files), but when dragging, it displays a prohibition symbol and cannot complete sharing files. According to the official documentation, this method is specifically designed to handle time-consuming operations, but we are unable to provide this requirement at this time. I am not sure if there is a problem with my code.

Steps to reproduce the bug

My Code

I use Task.Delay(10000) to simulate time-consuming tasks
屏幕截图 2024-05-13 171000

I have set the DragitemsStarting event handler FileList_DragitemsStarting in the ListView.
I dragged the control to the desktop.

Expected behavior

No response

Screenshots

Unable to drag

I dragged the control to the desktop.
屏幕截图 2024-05-13 170900

Official documents

屏幕截图 2024-05-13 171040

NuGet package version

WinUI 3 - Windows App SDK 1.5.3: 1.5.240428000

Windows version

Windows 11 (22H2): Build 22621

Additional context

No response

@a2596519067 a2596519067 added the bug Something isn't working label May 13, 2024
Copy link

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!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@microsoft-github-policy-service microsoft-github-policy-service bot added the needs-triage Issue needs to be triaged by the area owners label May 13, 2024
@codendone codendone added area-Lists ListView, GridView, ListBox, etc team-Controls Issue for the Controls team and removed needs-triage Issue needs to be triaged by the area owners labels May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-Lists ListView, GridView, ListBox, etc bug Something isn't working team-Controls Issue for the Controls team
Projects
None yet
Development

No branches or pull requests

2 participants