Exemplo n.º 1
0
        private static void OnSelectedItemChanged(BindableObject bindable, object oldValue, object newValue)
        {
            BindablePicker boundPicker = (BindablePicker)bindable;

            boundPicker.InvalidateMeasure();
            boundPicker.ItemSelected?.Invoke(boundPicker, new SelectedItemChangedEventArgs(newValue));
            boundPicker.InternalSelectedItemChanged();
        }
Exemplo n.º 2
0
        private static void OnItemsSourceChanged(BindableObject bindable, object oldValue, object newValue)
        {
            if (Equals(newValue, null) && Equals(oldValue, null))
            {
                return;
            }
            BindablePicker picker = (BindablePicker)bindable;

            picker.InstanceOnItemsSourceChanged(oldValue, newValue);
        }
Exemplo n.º 3
0
        private static void OnSelectedValueChanged(BindableObject bindable, object oldValue, object newValue)
        {
            BindablePicker boundPicker = (BindablePicker)bindable;

            boundPicker.InternalSelectedValueChanged();
        }