Xamarin.Forms.Core 1.0.0.0 1.1.0.0 1.2.0.0 1.3.0.0 1.4.0.0 1.5.0.0 2.0.0.0 System.Object System.Windows.Input.ICommand Defines an implementation that wraps a . The following example creates a new Command and set it to a button. Debug.WriteLine ("Command executed")); var button = new Button { Text = "Hit me to execute the command", Command = command, }; ]]> More useful scenarios takes a parameter Debug.WriteLine ("Command executed: {0}", o)); var button = new Button { Text = "Hit me to execute the command", Command = command, CommandParameter = "button0", }; ]]> Constructor 1.0.0.0 1.1.0.0 1.2.0.0 1.3.0.0 1.4.0.0 1.5.0.0 2.0.0.0 An Action to execute when the Command is executed. Initializes a new instance of the Command class. Constructor 1.0.0.0 1.1.0.0 1.2.0.0 1.3.0.0 1.4.0.0 1.5.0.0 2.0.0.0 An Action<object> to execute when the Command is executed. Initializes a new instance of the Command class. The Action will be executed with a parameter. Constructor 1.0.0.0 1.1.0.0 1.2.0.0 1.3.0.0 1.4.0.0 1.5.0.0 2.0.0.0 An Action to execute when the Command is executed. A indicating if the Command can be executed. Initializes a new instance of the Command class. Whenever the value returned by canExecute has changed, a call to is required to trigger . Constructor 1.0.0.0 1.1.0.0 1.2.0.0 1.3.0.0 1.4.0.0 1.5.0.0 2.0.0.0 An Action<object> to execute when the Command is executed. A indicating if the Command can be executed. Initializes a new instance of the Command class. Whenever the value returned by canExecute has changed, a call to is required to trigger . Method 1.0.0.0 1.1.0.0 1.2.0.0 1.3.0.0 1.4.0.0 1.5.0.0 2.0.0.0 System.Boolean An used as parameter to determine if the Command can be executed. Returns a indicating if the Command can be exectued with the given parameter. if the Command can be executed, otherwise. If no canExecute parameter was passed to the Command constructor, this method always returns . If the Command was created with non-generic execute parameter, the parameter of this method is ignored. Event 1.0.0.0 1.1.0.0 1.2.0.0 1.3.0.0 1.4.0.0 1.5.0.0 2.0.0.0 System.EventHandler Occurs when the target of the Command should reevaluate whether or not the Command can be executed. Method 1.0.0.0 1.1.0.0 1.2.0.0 1.3.0.0 1.4.0.0 1.5.0.0 2.0.0.0 System.Void Send a Method 1.0.0.0 1.1.0.0 1.2.0.0 1.3.0.0 1.4.0.0 1.5.0.0 2.0.0.0 System.Void An used as parameter for the execute Action. Invokes the execute Action If the Command was created with non-generic execute parameter, the parameter of this method is ignored.