Summary
Gets the current shown dialog.
- Namespace
- MahApps
.Metro .Controls .Dialogs - Containing Type
- IDialogCoordinator
Syntax
Task<TDialog> GetCurrentDialogAsync<TDialog>(object context) where TDialog : BaseMetroDialog
Type Parameters
| Name | Description |
|---|---|
| TDialog |
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). |
Return Value
| Type | Description |
|---|---|
| Task |
