-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[regression/8.0.0-preview.1.7762] [WinUI] CollectionView runtime binding errors when loading the ItemSource asynchronously #16787
Comments
@StephaneDelcroix thoughts? |
Verified this on Visual Studio Enterprise 17.8.0 Preview 1.0. Repro on Windows 11 .NET 8 with below Project: |
Just adding my name to this as it completely blocks our upgrade to .NET 8 - we are effectively stuck on our landing page because none of the controls generated by CollectionView have any context, ergo are completely non-functional. This basically blocks any real testing of .NET 8 since we cannot progress past this point without rewriting code. This is a major issue for us with the timescales involved - the more time we lose to things like this, the less time we have to properly test our end-of-year release. |
Confirmed that this regressed between 7.0.92...8.0.0-preview.1.7762. Still reproducible on nightly. Some of the errors seem inconsequential and the binding is resolved, while other bindings appear to not work at all. #10999 seems sus. |
I hope we're going to see a pretty quick turn around on a new RC given how serious this one is - pretty much a blocker for using MAUI on Windows. At least I can continue with a local build, but I assume someone else might want to come up with a better fix than just reverting #10999? @espenrl @PureWeen @hartez |
Description
I was testing the last updates available for the Net 8 preview 6 (using Visual Studio 17.7), to see if everything continues to works as expected.
What I have found is that if you have a CollectionView that uses data binding inside it's DataTemplate, WinUI will report some binding problems if you load the ItemSource asynchronously like when you go to some API to get the data and then fill the ItemSource list with that data.
If you load the ItemsSource without waiting for an asynchronous response, everything work as expected.
App after showing the list:
Binding errors:
Steps to Reproduce
Link to public reproduction project repository
https://github.com/nicop85/CollectionViewBindingProblems.git
Version with bug
8.0.0-preview.1.7762
Is this a regression from previous behavior?
Yes, this used to work in .NET MAUI
Last version that worked well
7.0.92
Affected platforms
Windows
Affected platform versions
Windows 10.0.17763.0
Did you find any workaround?
No
Relevant log output
No response
The text was updated successfully, but these errors were encountered: