共用方式為


ContentDialog.PrimaryButtonCommand 屬性

定義

取得或設定在點選主要按鈕時要叫用的命令。

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

void PrimaryButtonCommand(ICommand value);
public ICommand PrimaryButtonCommand { get; set; }
var iCommand = contentDialog.primaryButtonCommand;
contentDialog.primaryButtonCommand = iCommand;
Public Property PrimaryButtonCommand As ICommand
<ContentDialog PrimaryButtonCommand="commandReference"/>

屬性值

點選主要按鈕時要叫用的命令。

適用於