Picker for Xamarin.Forms to ease programming MVVM paradigm by providing a bindable ItemsSource property amongs others
Unlike Xamarin.Forms.Picker the BindablePicker provides a property ItemsSource to bind a collection of objects to. If the collection is of type INotifyCollectionChanged (ObservableCollection implements this interface) then changes to the collection will be propogated to the Items property.
- ItemsSourceProperty (IList) Bind a list of objects that synchronize with the visual presentation
- DisplayMemberPath (string) The member of the object to display. Can be nested property expression
- DisplayMemberFunc (Func<object, string>) Func to create a custom string-representation of the objects
- SelectedItemProperty (object) The selected object (TwoWay-binding)
- Setting the
SelectedIndexproperty before theItemsSourceproperty will setSelectedIndexto-1since theItemsproperty is empty causecoerceSelectedIndexreturning-1