Share via


ContentDialogButtonClickEventArgs.Cancel Property

Definition

Gets or sets a value that can cancel the button click. A true value for Cancel cancels the default behavior.

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

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

Property Value

Boolean

bool

True to cancel the button click; Otherwise, false.

Applies to