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"/>

属性值

点击主按钮时要调用的命令。

适用于