static void ImagePropertyChanged(BindableObject bindable, object oldValue, object newValue) { AccountMenuButtonView view = (AccountMenuButtonView)bindable; Device.BeginInvokeOnMainThread(() => { view.IconImage.Source = newValue.ToString(); }); }
static void SubtitlePropertyChanged(BindableObject bindable, object oldValue, object newValue) { AccountMenuButtonView view = (AccountMenuButtonView)bindable; Device.BeginInvokeOnMainThread(() => { view.SubtitleLabel.Text = newValue.ToString(); }); }
static void NumberOfTapsRequiredPropertyChanged(BindableObject bindable, object oldValue, object newValue) { AccountMenuButtonView view = (AccountMenuButtonView)bindable; view.TapGestureRecognizer.NumberOfTapsRequired = (Int32)newValue; }
static void TappedCommandPropertyChanged(BindableObject bindable, object oldValue, object newValue) { AccountMenuButtonView view = (AccountMenuButtonView)bindable; view.TapGestureRecognizer.Command = (ICommand)newValue; }
static void TitlePropertyChanged(BindableObject bindable, object oldValue, object newValue) { AccountMenuButtonView view = (AccountMenuButtonView)bindable; view.TitleLabel.Text = newValue.ToString(); }
static void SwitchToggleVisiblePropertyChanged(BindableObject bindable, object oldValue, object newValue) { AccountMenuButtonView view = (AccountMenuButtonView)bindable; view.SwitchToggle.IsVisible = (bool)newValue; }
static void SwitchToggledEventPropertyChanged(BindableObject bindable, object oldValue, object newValue) { AccountMenuButtonView view = (AccountMenuButtonView)bindable; view.SwitchToggle.Toggled += (EventHandler <ToggledEventArgs>)newValue; }