Share via


ContentDialogClosingEventArgs.Cancel Property

Definition

Gets or sets a value that can cancel the closing of the dialog.. 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 = contentDialogClosingEventArgs.cancel;
contentDialogClosingEventArgs.cancel = boolean;
Public Property Cancel As Boolean

Property Value

Boolean

bool

True to cancel the closing of the dialog; Otherwise, false.

Applies to