示例#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();
        }
示例#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);
        }
示例#3
0
        private static void OnSelectedValueChanged(BindableObject bindable, object oldValue, object newValue)
        {
            BindablePicker boundPicker = (BindablePicker)bindable;

            boundPicker.InternalSelectedValueChanged();
        }