Picker is empty #15538
Unanswered
ComptonAlvaro
asked this question in
Q&A
Picker is empty
#15538
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
I have a Picker in a view and an ObservableCollection in the view model. I populate the ObservableCollection, but the Picker doesn't show any item.
This is my view:
This is the ViewModel:
ObservableCollection<PrecisionesGpsUI> PrecisionesGps2 = new ObservableCollection<PrecisionesGpsUI>() { new PrecisionesGpsUI(GeolocationAccuracy.Best)};
For testing I am adding an item in the instantiation of the ObservableCollection.
This is the class for the items:
For this class, I am using CommunityToolkit to notify changes.
How could I show the items in the Picker?
Thanks.
Steps to Reproduce
1.- Create a MAUI project
2.- Add to the main page a picker with the code I have show in the question.
3.- Create a view model for the view and add the code.
Link to public reproduction project repository
no repository
Version with bug
7.0.49
Last version that worked well
7.0.86
Affected platforms
Android
Affected platform versions
Android API 33
Did you find any workaround?
I have not found any workaround.
Relevant log output
Beta Was this translation helpful? Give feedback.
All reactions