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); }
void OnCommandCanExecuteChanged(object sender, EventArgs e) => ButtonElementManager.CommandCanExecuteChanged(this, EventArgs.Empty);
public void SendPressed() => ButtonElementManager.ElementPressed(this, this);
public void SendReleased() => ButtonElementManager.ElementReleased(this, this);
public void SendClicked() => ButtonElementManager.ElementClicked(this, this);