On 9/30/2016 I updated the Xamarin Forms Bindable Picker, correcting it to handle the view model clearing the Items ObservableCollection.
When the view model exposes an ObservableCollection as the BindablePickers ItemsSource and the view model clears that collection, the BindablePicker now responds correctly and updates the UI as expected by:
- Removing all items in its collection
- Setting SelectedItem to null
- Setting SelectedValue to null
- Setting SelectedIndex to -1
Much appreciate the feedback and bug reports I’ve received to make this control much better.
Have a great day,
Just a grain of sand on the world’s beaches
This blog post has been replaced and updated. Please see the updated post: https://oceanware.wordpress.com/2016/08/12/xamarin-forms-bindable-picker-v2/
New post has new code, new features, and project on gitgub.
Have a great day.
Just a grain of sand on the worlds beaches.