CoreWindowDialog CoreWindowDialog CoreWindowDialog CoreWindowDialog Class


Defines a child dialog of an app window.

public : sealed class CoreWindowDialog
struct winrt::Windows::UI::Core::CoreWindowDialog
public sealed class CoreWindowDialog
Public NotInheritable Class CoreWindowDialog

Windows 10 requirements

Device family
Windows Desktop Extension SDK (introduced v10.0.10240.0)
API contract
Windows.UI.Core.CoreWindowDialogsContract (introduced v1)



: 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).


CoreWindowDialog() CoreWindowDialog() CoreWindowDialog() CoreWindowDialog()

Creates a default instance of the CoreWindowDialog class.

CoreWindowDialog(String) CoreWindowDialog(String) CoreWindowDialog(String) CoreWindowDialog(String)

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


BackButtonCommand BackButtonCommand BackButtonCommand BackButtonCommand

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

CancelCommandIndex CancelCommandIndex CancelCommandIndex CancelCommandIndex

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

Commands Commands Commands Commands

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

DefaultCommandIndex DefaultCommandIndex DefaultCommandIndex DefaultCommandIndex

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

IsInteractionDelayed IsInteractionDelayed IsInteractionDelayed 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 MaxSize MaxSize MaxSize

Gets the maximum size of the dialog.

MinSize MinSize MinSize MinSize

Gets the minimum size of the dialog.

Title Title Title Title

Gets or sets the title of the dialog.


ShowAsync() ShowAsync() ShowAsync() ShowAsync()

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


Showing Showing Showing Showing

Is fired when the dialog is displayed.