microsoft / microsoft/microsoft-ui-xaml

BluetoothDevice.ConnectionStatusChanged is not invoking when gif is loaded to image

Open
#9,969 0 comments 0 reactions 0 assignees View on GitHub
area-Images bug team-Controls
Dominant language
C++
Stars
8.4k
Forks
942
Avg merge
2d 7h
Merged PRs (30d)
105

Description

### Describe the bug

Hi. We have encountered a strange bug in WinUI3. There is API Windows.Devices.Bluetooth to work with Bluetooth devices and we are interested in observing connection states. However, this event will never occur if there is an image with a GIF somewhere in the UI. With images (png) everything works fine. Also, we have tested in UWP and there is no such behavior. So how to fix it?

### Steps to reproduce the bug

Open solution
On the main window set gif as the image source
The event will never occur

### Expected behavior

The event will occur whether the gif or image is loaded.

### Screenshots

_No response_

### NuGet package version

WinUI 3 - Windows App SDK 1.6.0: 1.6.240829007

### Windows version

Windows 11 (22H2): Build 22621

### Additional context

[BannerBluetoothProblem.zip](https://github.com/user-attachments/files/16943305/BannerBluetoothProblem.zip)

Contributor guide

Open the contributing guide

Research direction

Open the attached BannerBluetoothProblem.zip solution and reproduce the issue by setting a GIF as the main-window image source while observing BluetoothDevice.ConnectionStatusChanged. Compare the GIF behavior with a PNG and the reported UWP behavior; done means the event fires when the GIF is loaded, as it does for the PNG.

Written by the indexing model from the issue text.

Assessment

Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.