microsoft / microsoft/microsoft-ui-xaml

new winui3 black app can not drag file from explorer to webview2 ,please fix this bug.

Open
#10,142 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area-WebView bug product-winui3 team-Core team-Rendering
Dominant language
C++
Stars
8.4k
Forks
942
Avg merge
2d 7h
Merged PRs (30d)
105

Description

### Describe the bug

we use vs2022 create an black winui3 app with webview2. app can't drag file from explorder to webview2

### Steps to reproduce the bug

1.create new winui3 app
2.run new winui3 app.
3.drap an txt file from desktop to wenview2 .show a red disabled icon.https://github.com/user-attachments/assets/c892ac4b-dd69-432e-a24d-ab39ddfe25d8

### Expected behavior

_No response_

### Screenshots

_No response_

### NuGet package version

WinUI 3 - Windows App SDK 1.6.1: 1.6.240923002

### Windows version

Windows 11 (22H2): Build 22621

### Additional context

_No response_

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue in a new WinUI 3 app with WebView2 using Windows App SDK 1.6.1 on Windows 11 build 22621. Investigate the drag-and-drop handling between Explorer and WebView2; done means dragging a text file into the WebView2 control is accepted instead of showing the disabled cursor.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.