ContentDialog.CloseButtonCommand 属性

定义

获取或设置在点击关闭按钮时要调用的命令。

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

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

属性值

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

适用于