共用方式為


XamlUICommand.Command 屬性

定義

取得或設定互動式 UI 元素的命令列為,該元素會在叫用時執行動作,例如傳送電子郵件、刪除專案或提交表單。

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

屬性值

專案的命令列為。

備註

XamlUICommand 會實作 ICommand介面 (Microsoft.UI.Xaml.Input.ICommand for C++ 或 System.Windows.Input.ICommand for C#) 、新增各種 UI 屬性、方法和事件。

適用於

另請參閱