question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ComboBox on AppWindow Freezes application in WinUI 2

See original GitHub issue

Describe the bug

On versions of WinUI 2 after version 2.6.0-prerelease.210430001, using a ComboBox on an AppWindow will result in the application hanging.

Steps to reproduce the bug

I’ve created a repro solution here: https://github.com/ZodmanPerth/WinUI2ComboBoxFreezeBug. The readme in that repro has replication steps specific to replication on that solution.

For generic reproduction:

  1. Create a new UWP app
  2. Install WinUI 2 (any version after 2.6.0-prerelease.210430001 replicates the issue)
  3. From the main window, spawn a new AppWindow containing a ComboBox with several items
  4. Run the app
  5. Spawn the AppWindow
  6. Open the ComboBox
  7. Move your mouse across the open ComboBox, ensuring the mouse goes outside the airspace of the open ComboBox
  8. Observe the app hangs

An easy way to observe it hangs is that the ComboBoxItem hover state stops working

Expected behavior

The app should not hang, the UI should remain responsive.

Screenshots

image

NuGet package version

Microsoft.UI.Xaml 2.8.0-prerelease.220601001

Windows app type

  • UWP
  • Win32

Device form factor

Desktop

Windows version

Windows 11 (21H2): Build 22000

Additional context

It seems that changes to the style of the ComboBox after 2.6.0-prerelease.210430001 have caused the issue.

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:2
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
lukeblevinscommented, Jun 17, 2022

Hi @ZodmanPerth.

Just a fellow developer here.

Could you try applying the workaround I mentioned here and let me know if this still repros?

0reactions
github-actions[bot]commented, Jul 28, 2023

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 5 days.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Close the window when ComboBox in ContentDialog ...
Put a ComboBox in a ContentDialog , and close the window if the ComboBox is currently opened will crash the app. Steps to...
Read more >
Stable channel release notes for the Windows App SDK
This is a servicing release of the Windows App SDK that includes critical bug fixes for the 1.2 release. Fixed issue causing WinUI...
Read more >
C# ComboBox paint is freezing
The only way to fix this is to close the application and reopen. As long as I stay on the tab the control...
Read more >
ComboBox Class (Windows.UI.Xaml.Controls) - UWP
Represents a selection control that combines a non-editable text box and a drop-down list box that allows users to select an item from...
Read more >
Is Maui dead on arrival? : r/dotnet
I am a WPF developer and since Microsoft basically killed WPF (not releasing any newer versions of it, not putting any more resources...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found