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