Share via


ContentDialogClosingEventArgs.Cancel 屬性

定義

取得或設定值,這個值可以取消對話框的結尾。 Canceltrue 值會取消預設行為。

public:
 property bool Cancel { bool get(); void set(bool value); };
bool Cancel();

void Cancel(bool value);
public bool Cancel { get; set; }
var boolean = contentDialogClosingEventArgs.cancel;
contentDialogClosingEventArgs.cancel = boolean;
Public Property Cancel As Boolean

屬性值

Boolean

bool

True 是表示 取消對話框的結尾;否則為 false。

適用於