IDialogCoordinator.

GetCurrentDialogAsync<TDialog>(object) Method

Summary

Gets the current shown dialog.

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<TDialog>