ComboBox on AppWindow Freezes application in WinUI 2
See original GitHub issueDescribe 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:
- Create a new UWP app
- Install WinUI 2 (any version after
2.6.0-prerelease.210430001
replicates the issue) - From the main window, spawn a new
AppWindow
containing aComboBox
with several items - Run the app
- Spawn the
AppWindow
- Open the
ComboBox
- Move your mouse across the open
ComboBox
, ensuring the mouse goes outside the airspace of the open ComboBox - 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
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:
- Created a year ago
- Reactions:2
- Comments:6 (1 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi @ZodmanPerth.
Just a fellow developer here.
Could you try applying the workaround I mentioned here and let me know if this still repros?
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.