ContentDialogClosingEventArgs ContentDialogClosingEventArgs ContentDialogClosingEventArgs ContentDialogClosingEventArgs Class


Provides data for the closing event.

public : sealed class ContentDialogClosingEventArgs : IContentDialogClosingEventArgs
public sealed class ContentDialogClosingEventArgs : IContentDialogClosingEventArgs
Public NotInheritable Class ContentDialogClosingEventArgs Implements IContentDialogClosingEventArgs
// This class does not provide a public constructor.
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)


Cancel Cancel Cancel Cancel

Gets or sets a value that can cancel the closing of the dialog.. A true value for Cancel cancels the default behavior.

public : Platform::Boolean Cancel { get; set; }
public bool Cancel { get; set; }
Public ReadWrite Property Cancel As bool
var bool = contentDialogClosingEventArgs.cancel;
contentDialogClosingEventArgs.cancel = bool;
Platform::Boolean bool bool bool

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

Result Result Result Result

Gets the ContentDialogResult of the closing event.

public : ContentDialogResult Result { get; }
public ContentDialogResult Result { get; }
Public ReadOnly Property Result As ContentDialogResult
var contentDialogResult = contentDialogClosingEventArgs.result;


GetDeferral() GetDeferral() GetDeferral() GetDeferral()

Gets a ContentDialogClosingDeferral that the app can use to respond asynchronously to the closing event.

public : ContentDialogClosingDeferral GetDeferral()
public ContentDialogClosingDeferral GetDeferral()
Public Function GetDeferral() As ContentDialogClosingDeferral
var contentDialogClosingDeferral = contentDialogClosingEventArgs.getDeferral();