예제 #1
0
        static void OnCommandChanged(BindableObject bo, object o, object n)
        {
            var button = (ImageButton)bo;

            if (n is ICommand newCommand)
            {
                newCommand.CanExecuteChanged += button.OnCommandCanExecuteChanged;
            }

            ButtonElementManager.CommandChanged(button);
        }
예제 #2
0
 void OnCommandCanExecuteChanged(object sender, EventArgs e) =>
 ButtonElementManager.CommandCanExecuteChanged(this, EventArgs.Empty);
예제 #3
0
 public void SendPressed() =>
 ButtonElementManager.ElementPressed(this, this);
예제 #4
0
 public void SendReleased() =>
 ButtonElementManager.ElementReleased(this, this);
예제 #5
0
 public void SendClicked() =>
 ButtonElementManager.ElementClicked(this, this);