XamlUICommand.Command Property

Definition

Gets or sets the command behavior of an interactive UI element that performs an action when invoked, such as sending an email, deleting an item, or submitting a form.

public:
 property ICommand ^ Command { ICommand ^ get(); void set(ICommand ^ value); };
ICommand Command();

void Command(ICommand value);
public ICommand Command { get; set; }
var iCommand = xamlUICommand.command;
xamlUICommand.command = iCommand;
Public Property Command As ICommand

Property Value

The command behavior of the element.

Remarks

XamlUICommand implements the ICommand interface (Microsoft.UI.Xaml.Input.ICommand for C++ or System.Windows.Input.ICommand for C#), adding various UI properties, methods, and events.

Applies to

See also