CoreWindowDialog Class

Definition

Defines a child dialog of an app window.

public ref class CoreWindowDialog sealed
class CoreWindowDialog sealed
[Windows.Foundation.Metadata.Activatable(typeof(Windows.UI.Core.ICoreWindowDialogFactory), 65536, typeof(Windows.UI.Core.CoreWindowDialogsContract))]
[Windows.Foundation.Metadata.Activatable(65536, typeof(Windows.UI.Core.CoreWindowDialogsContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.UI.Core.CoreWindowDialogsContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Standard)]
[Windows.Foundation.Metadata.Muse(Version=100794368)]
[Windows.Foundation.Metadata.WebHostHidden]
public sealed class CoreWindowDialog
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.UI.Core.CoreWindowDialogsContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Standard)]
[Windows.Foundation.Metadata.Muse(Version=100794368)]
[Windows.Foundation.Metadata.WebHostHidden]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.UI.Core.ICoreWindowDialogFactory), 65536, "Windows.UI.Core.CoreWindowDialogsContract")]
[Windows.Foundation.Metadata.Activatable(65536, "Windows.UI.Core.CoreWindowDialogsContract")]
public sealed class CoreWindowDialog
Public NotInheritable Class CoreWindowDialog
Inheritance
CoreWindowDialog
Attributes

Windows 10 requirements

Device family
Windows Desktop Extension SDK (introduced in 10.0.10240.0)
API contract
Windows.UI.Core.CoreWindowDialogsContract (introduced in v1.0)

Remarks

Note

: This class is not agile, which means that you need to consider its threading model and marshaling behavior. For more info, see Threading and Marshaling (C++/CX).

Constructors

CoreWindowDialog()

Creates a default instance of the CoreWindowDialog class.

CoreWindowDialog(String)

Creates an instance of the CoreWindowDialog class with the supplied title.

Properties

BackButtonCommand

Gets or sets the delegate called when the back button on the dialog is selected.

CancelCommandIndex

Gets and sets the command index value for the dialog cancel operation.

Commands

Gets the set of user interface commands (UI) available on the dialog.

DefaultCommandIndex

Gets or sets the index of the dialog window's default command.

IsInteractionDelayed

Gets or sets a value that indicates whether any UI interaction event message is slightly delayed or not. This delay prevents a user from accidentally invoking an action on the dialog window.

MaxSize

Gets the maximum size of the dialog.

MinSize

Gets the minimum size of the dialog.

Title

Gets or sets the title of the dialog.

Methods

ShowAsync()

Displays the dialog and asynchronously waits for the user to take an action.

Events

Showing

Is fired when the dialog is displayed.

Applies to