Xamarin.Forms.Button.Command Property
Gets or sets the command to invoke when the button is activated. This is a bindable property.

Syntax

public System.Windows.Input.ICommand Command { get; set; }

Value

A command to invoke when the butto is activated. The default value is null.

Remarks

This property is used to associate a command with an instance of a button. This property is most often set in the MVVM pattern to bind callbacks back into the ViewModel. VisualElement.IsEnabled is controlled by the Command if set.

Requirements

Namespace: Xamarin.Forms
Assembly: Xamarin.Forms.Core (in Xamarin.Forms.Core.dll)
Assembly Versions: 1.0.0.0, 1.1.0.0, 1.2.0.0, 1.3.0.0