共用方式為


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

屬性值

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

適用於