private static int CoerceSelectedIndex(BindableObject bindable, int value)
        {
            BindablePicker picker = (BindablePicker)bindable;

            if (picker.Items != null)
            {
                return(value.Clamp(-1, picker.Items.Count - 1));
            }
            return(-1);
        }
Example #2
0
 public PickerSource(Xamarin.Forms.Labs.Controls.BindablePicker model)
 {
     this.model = model;
 }