-
Notifications
You must be signed in to change notification settings - Fork 784
Description
Describe the bug
After changing the OS display scaling settings, images in my WinUI 3 application update but are not rendered pixel-perfect. The image appears slightly blurred or scaled incorrectly.
Interestingly, simply closing and reopening the application does not resolve the issue. The correct rendering only occurs after terminating the process completely (e.g., via Task Manager) and then restarting the app.
Why is this important?
Accurate image rendering across display scaling settings is essential for maintaining UI clarity and visual consistency in WinUI 3 applications. Many modern systems use high-DPI displays, and users frequently adjust scaling settings for accessibility or readability.
Steps to reproduce the bug
- Launch a WinUI 3 application that displays an image.
- Change the Windows display scaling setting (e.g., from 100% → 150%).
- Close and reopen the application.
- Observe that the image appears slightly blurry or misaligned.
- Terminate the process completely, then relaunch.
- Observe that the image now renders pixel-perfect.
Actual behavior
Images remain blurry or imperfectly scaled until the process is fully terminated and restarted.
Expected behavior
After changing OS display scaling, restarting the app normally (not killing the process) should result in sharp, pixel-perfect image rendering.
Screenshots
No response
NuGet package version
None
Windows version
Windows 11 (24H2): Build 26100
Additional context
No response