microsoft / WindowsAppSDK

The Windows App SDK empowers all Windows desktop apps with modern Windows UI, APIs, and platform features, including back-compat support, shipped via NuGet.
https://docs.microsoft.com/windows/apps/windows-app-sdk/
MIT License
3.8k stars 320 forks source link

Unable to switch to a different printer in print dialog #4439

Closed char8t closed 1 month ago

char8t commented 4 months ago

Describe the bug

Whenever I update the WindowsAppSDK in our MAUI Blazor Hybrid App to any version beyond 1.3.230724000, I am unable to change the selected printer in the print dialog.

Steps to reproduce the bug

  1. Create an MAUI Blazor Hybrid App running on .NET 8 with WinAppSDK 1.3.230724000
  2. Test printer dialog
  3. Update WinAppSDK to the latest version
  4. Test printer dialog again

Expected behavior

Be able to switch to a different printer

Screenshots

PrinterDialog

NuGet package version

Windows App SDK 1.5.3: 1.5.240428000

Packaging type

Packaged (MSIX)

Windows version

Windows 11 version 22H2 (22621, 2022 Update)

IDE

Visual Studio 2022

Additional context

Changing the printer does not work with either mouse or keyboard selection.

char8t commented 4 months ago

It seems that the issue comes from the fact that the overlay with the available printers does not seem to receive the mouse click and instead just vanishes and activates what is behind it

char8t commented 1 month ago

Can confirm this issue is gone when I use the latest WindowsAppSdk (1.5.240802000) and building with .Net 8.0.8. Closed.