-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Databinding errors on ListView - What am I doing wrong? #19873
Comments
If you're seeing errors in the Visual Studio UI but the actual MAUI UI looks fine, it could be an issue with the tooling. @spadapet What do you think? |
Well the whole structure of my app just got amended in design. So now we're doing everything with static pages, and a link to the parent view model is precisely what I need. So you can either fix or close this :) |
Thanks for the issue report @enjoysmath! This issue appears to be a problem with Visual Studio, so we ask that you use the VS feedback tool to report the issue. That way it will get to the routed to the team that owns this experience in VS. If you encounter a problem with Visual Studio, we want to know about it so that we can diagnose and fix it. By using the Report a Problem tool, you can collect detailed information about the problem, and send it to Microsoft with just a few button clicks.
|
I think this is the same bug as: The binding failures UI in VS shows that MAUI's ListView is temporarily using the wrong data context when new items are added. The data context is supposed to be The correct data context will get set on the new items, but the initial error is still logged in the binding failures UI in VS. I'd guess it's a bug in ListView and not a problem with Visual Studio. Using the VS feedback tool isn't going to help more than the main MAUI issue. cc: @drasticactions |
Okay, I wasn't sure of the context. We can close this as a duplicate of #8433. |
ListView ItemTemplate Data-binding currently gets these Errors at run-time and also the styling looks way off:
https://stackoverflow.com/q/77809597/7076615
I can't switch to CollectionView for unrelated / independent other error(s).
Discussed in #10277
Originally posted by danielcooper-hk September 22, 2022
Hi everyone,
I am pulling what little hair I have left out over this - if someone can point me in the right direction I would be very grateful.
When the application runs there are no binding errors but when I click on the button to run the AddItemCommand the item appears in the list view but I get data binding errors on both Name and Description. What am I doing wrong in the ListView to cause this?
Thanks,
Dan.
I've written the following sample:
My MainPageModel:
My MainPageViewModel:
My MainPage.xaml:
And finally the MainPage.xaml.cs:
The text was updated successfully, but these errors were encountered: