Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 public PickerSource(Xamarin.Forms.Labs.Controls.BindablePicker model)
 {
     this.model = model;
 }