ContentDialogClosingEventArgs ContentDialogClosingEventArgs ContentDialogClosingEventArgs ContentDialogClosingEventArgs Class

Definition

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.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Properties

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;
Value
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;

Methods

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();
Returns