Summary
Adds a Metro Dialog instance 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 ShowMetroDialogAsync(this MetroWindow window, BaseMetroDialog dialog, MetroDialogSettings settings = null)
Parameters
Name | Type | Description |
---|---|---|
window | MetroWindow | The owning window of the dialog. |
dialog | BaseMetroDialog | The dialog instance itself. |
settings | MetroDialogSettings | An optional pre-defined settings instance. |
Return Value
Type | Description |
---|---|
Task | A task representing the operation. |