Summary
Adds a Metro Dialog instance to the specified window and makes it visible asynchronously.
You have to close the resulting dialog yourself with HideMetroDialogAsync(object, BaseMetroDialog, MetroDialogSettings)
.
- Namespace
- MahApps
.Metro .Controls .Dialogs - Containing Type
- IDialogCoordinator
Syntax
Task ShowMetroDialogAsync(object context, BaseMetroDialog dialog, MetroDialogSettings settings = null)
Parameters
Name | Type | Description |
---|---|---|
context | object | Typically this should be the view model, which you register in XAML using MahApps.Metro.Controls.Dialogs.DialogParticipation.SetRegister(DependencyObject,System.Object) . |
dialog | BaseMetroDialog | The dialog instance itself. |
settings | MetroDialogSettings | An optional pre-defined settings instance. |
Return Value
Type | Description |
---|---|
Task | A task representing the operation. |