Xamarin.forms: Xamarin 4.3 Picker not updating when backing ObservableCollection changes on UWP

Created on 31 Oct 2019  路  7Comments  路  Source: xamarin/Xamarin.Forms

_This issue has been moved from a ticket on Developer Community._


Starting in the latest Xamarin 4.3 release.
Defining a Picker in XAML

<Picker x:Name="MyPicker" ItemsSource="{Binding PickerItems}" SelectedItem="{Binding SelectedPickerItem}" ></Picker>

If PickerItems is an ObservableCollection and an item is added or removed from the collection, the Picker will not reflect the change.
The original items will still show in the picker's list.

In the previous Xamarin version 4.2 it behaved as expected.

It seems to work OK on Android.


Original Comments

Visual Studio Feedback System on 10/24/2019, 08:12 PM:

We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.

solomon.fried on 10/30/2019, 08:22 AM:

Seems to have been reported in GitHub

solomon.fried on 10/30/2019, 08:22 AM:

https://github.com/xamarin/Xamarin.Forms/issues/8177


Original Solutions

(no solutions)

regression in-progress UWP bug

All 7 comments

Yes, this is a duplicate of #8177.

Any idea when this will be fixed. It is causing my test users to have to close and restart the app whenever an item is added to a list in order to see the changes.
I doubt I can pass the Windows App Store with this bug in place. (which was first reported 2 weeks ago!)

Can the Xamarin team please provide a workaround/hack we can use to refresh the UWP Picker contents. For use until this bug is fixed. Thanks, Alan

@squizfloats check XF 4.3.0.991211 (just released) and let us know if you still see this issue.

@squizfloats check XF 4.3.0.991211 (just released) and let us know if you still see this issue.

I just tested it and I can confirm it is now working as intended in UWP.

@squizfloats @solomonfried looks like this has been solved in the NuGet package that was just released. Closing this for now. If you think otherwise, please let us know!

Updated to XF 4.3.0.991211 on 11/14/19. Updating the Picker contents (bound to an ObservableCollection) now works on UWP. Thank you.

Was this page helpful?
0 / 5 - 0 ratings