Open stephenquan opened 3 weeks ago
We've found some similar issues:
If any of the above are duplicates, please consider closing this issue out and adding additional context in the original issue.
Note: You can give me feedback by 👍 or 👎 this comment.
I can repro this issue at Windows platform on the latest 17.12.0 preview 5(9.0.10-ci.net9.24553.1 & 9.0.0-rc.2.24503.2 & 8.0.92 & 8.0.91).
Hi, I faced the same issue ; The workaround is working.
Thank you @stephenquan
Description
(Moved from https://github.com/dotnet/maui/discussions/25565)
The binding reference by Picker.ItemDisplayBinding appears to cache results from the MVVM and doesn't react to subsequent changes. To reproduce this, I created a small test application with a CollectionView and a Picker where the CollectionView does react to the MVVM changes but the Picker does not.
Steps to Reproduce
The screen recording shows the CollectionView values changing but the Picker values are stuck on their initial value.
Link to public reproduction project repository
https://github.com/stephenquan/MauiPickerMVVM
Version with bug
8.0.92 SR9.2
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
Windows, Android, iOS
Affected platform versions
No response
Did you find any workaround?
As a workaround, when the view model updates, you have to reset picker.ItemDisplayBinding, e.g.
Relevant log output
No response