コード例 #1
0
        static void ImagePropertyChanged(BindableObject bindable, object oldValue, object newValue)
        {
            AccountMenuButtonView view = (AccountMenuButtonView)bindable;

            Device.BeginInvokeOnMainThread(() =>
            {
                view.IconImage.Source = newValue.ToString();
            });
        }
コード例 #2
0
        static void SubtitlePropertyChanged(BindableObject bindable, object oldValue, object newValue)
        {
            AccountMenuButtonView view = (AccountMenuButtonView)bindable;

            Device.BeginInvokeOnMainThread(() =>
            {
                view.SubtitleLabel.Text = newValue.ToString();
            });
        }
コード例 #3
0
        static void NumberOfTapsRequiredPropertyChanged(BindableObject bindable, object oldValue, object newValue)
        {
            AccountMenuButtonView view = (AccountMenuButtonView)bindable;

            view.TapGestureRecognizer.NumberOfTapsRequired = (Int32)newValue;
        }
コード例 #4
0
        static void TappedCommandPropertyChanged(BindableObject bindable, object oldValue, object newValue)
        {
            AccountMenuButtonView view = (AccountMenuButtonView)bindable;

            view.TapGestureRecognizer.Command = (ICommand)newValue;
        }
コード例 #5
0
        static void TitlePropertyChanged(BindableObject bindable, object oldValue, object newValue)
        {
            AccountMenuButtonView view = (AccountMenuButtonView)bindable;

            view.TitleLabel.Text = newValue.ToString();
        }
コード例 #6
0
        static void SwitchToggleVisiblePropertyChanged(BindableObject bindable, object oldValue, object newValue)
        {
            AccountMenuButtonView view = (AccountMenuButtonView)bindable;

            view.SwitchToggle.IsVisible = (bool)newValue;
        }
コード例 #7
0
        static void SwitchToggledEventPropertyChanged(BindableObject bindable, object oldValue, object newValue)
        {
            AccountMenuButtonView view = (AccountMenuButtonView)bindable;

            view.SwitchToggle.Toggled += (EventHandler <ToggledEventArgs>)newValue;
        }