microsoft / microsoft/microsoft-ui-xaml

Cannot set DragUI visual.

Open
#10,144 5 comments 0 reactions 0 assignees View on GitHub
bug needs-triage
Dominant language
C++
Stars
8.4k
Forks
942
Avg merge
2d 7h
Merged PRs (30d)
105

Description

### Describe the bug

When I set the visual for a drag and drop operation using...

`args.DragUI.SetContentFromBitmapImage(bmp);`

The image is not visible.

### Steps to reproduce the bug

1. Create a handler for DragStarting
2. Provide a BitmapImage as a source image
3. Set the visual.

### Expected behavior

I expect to see the image.

### Screenshots

![Image](https://github.com/user-attachments/assets/035003f4-4718-4927-9a59-13256c85cfaa)

### NuGet package version

WinUI 3 - Windows App SDK 1.6.1: 1.6.240923002

### Windows version

Windows 11 (22H2): Build 22621

### Additional context

[DragUI.SetContentFromSoftwareBitmap() does not show the bitmap #4528](https://github.com/microsoft/microsoft-ui-xaml/issues/4528)

[DataGridRow Drag and Drop Visual does not display most of the time #4545](https://github.com/microsoft/microsoft-ui-xaml/issues/4545)

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue with a DragStarting handler and args.DragUI.SetContentFromBitmapImage(bmp) on Windows App SDK 1.6.1. Read the linked issues #4528 and #4545 for related behavior; done means the supplied BitmapImage is visible as the drag visual.

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
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.