DialogManager.

ShowMetroDialogAsync<TDialog>(MetroWindow, MetroDialogSettings) Method

Summary

Adds a Metro Dialog instance of the given type to the specified window and makes it visible asynchronously. If you want to wait until the user has closed the dialog, use WaitUntilUnloadedAsync()

You have to close the resulting dialog yourself with HideMetroDialogAsync(MetroWindow, BaseMetroDialog, MetroDialogSettings).

Namespace
MahApps.Metro.Controls.Dialogs
Containing Type
DialogManager

Syntax

public static Task<TDialog> ShowMetroDialogAsync<TDialog>(this MetroWindow window, MetroDialogSettings settings = null) 
    where TDialog : BaseMetroDialog

Type Parameters

Name Description
TDialog

Parameters

Name Type Description
window MetroWindow The owning window of the dialog.
settings MetroDialogSettings An optional pre-defined settings instance.

Return Value

Type Description
Task<TDialog> A task with the dialog representing the operation.