Udostępnij za pośrednictwem


CoreWindowDialog Class

Definition

Defines a child dialog of an app window.

In a desktop app, before using an instance of this class in a way that displays UI, you'll need to associate the object with its owner's window handle. For more info, and code examples, see Display WinRT UI objects that depend on CoreWindow.

public ref class CoreWindowDialog sealed
/// [Windows.Foundation.Metadata.Activatable(Windows.UI.Core.ICoreWindowDialogFactory, 65536, Windows.UI.Core.CoreWindowDialogsContract)]
/// [Windows.Foundation.Metadata.Activatable(65536, Windows.UI.Core.CoreWindowDialogsContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.UI.Core.CoreWindowDialogsContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Standard)]
class CoreWindowDialog final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.UI.Core.CoreWindowDialogsContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Standard)]
/// [Windows.Foundation.Metadata.Activatable(Windows.UI.Core.ICoreWindowDialogFactory, 65536, "Windows.UI.Core.CoreWindowDialogsContract")]
/// [Windows.Foundation.Metadata.Activatable(65536, "Windows.UI.Core.CoreWindowDialogsContract")]
class CoreWindowDialog final
[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)]
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.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
Object Platform::Object IInspectable CoreWindowDialog
Attributes

Windows 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.

In a desktop app, before using an instance of this class in a way that displays UI, you'll need to associate the object with its owner's window handle. For more info, and code examples, see Display WinRT UI objects that depend on CoreWindow.

CoreWindowDialog(String)

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

In a desktop app, before using an instance of this class in a way that displays UI, you'll need to associate the object with its owner's window handle. For more info, and code examples, see Display WinRT UI objects that depend on CoreWindow.

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