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(); }
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); }
private static void OnSelectedValueChanged(BindableObject bindable, object oldValue, object newValue) { BindablePicker boundPicker = (BindablePicker)bindable; boundPicker.InternalSelectedValueChanged(); }