Gets or sets the command to invoke when this button is pressed.
Syntax
<button Command="commandReference"/>
XAML Values
- commandReference
-
A reference to an ICommand implementation that describes the command logic. Typically this is done through a Binding reference to a data source, when using view-view model designs.
Property value
Type: System.Windows.Input.ICommand [.NET] | Windows::UI::Xaml::Input::ICommand [C++]
The command to invoke when this button is pressed. The default is null.
Remarks
The ICommand interface comes from a different source depending on whether the data source is implemented in C++ or for Microsoft .NET. C++ implements Windows::UI::Xaml::Input::ICommand. .NET implements System.Windows.Input.ICommand. Both interfaces have the same template. Which interface you call from your app code is analogous: use Windows::UI::Xaml::Input::ICommand for C++ code and System.Windows.Input.ICommand for .NET code.
Requirements
|
Minimum supported client | Windows 8 |
|---|---|
|
Minimum supported server | Windows Server 2012 |
|
Namespace |
|
|
Metadata |
|
See also
Build date: 3/12/2013