IDialogCoordinator Interface

Summary

Use the dialog coordinator to help you interfact with dialogs from a view model.
Namespace
MahApps.Metro.Controls.Dialogs
Implementing Types
graph BT Type["IDialogCoordinator"] class Type type-node Implementing0["DialogCoordinator"]-.->Type click Implementing0 "/api/MahApps.Metro.Controls.Dialogs/DialogCoordinator"

Syntax

public interface IDialogCoordinator

Methods

Name Value Summary
GetCurrentDialogAsync<TDialog>(object) Task<TDialog>
Gets the current shown dialog.
HideMetroDialogAsync(object, BaseMetroDialog, MetroDialogSettings) Task
Hides a visible Metro Dialog instance.
ShowInputAsync(object, string, string, MetroDialogSettings) Task<string>
Shows the input dialog.
ShowLoginAsync(object, string, string, LoginDialogSettings) Task<LoginDialogData>
Creates a LoginDialog inside of the current window.
ShowMessageAsync(object, string, string, MessageDialogStyle, MetroDialogSettings) Task<MessageDialogResult>
Creates a MessageDialog inside of the current window.
ShowMetroDialogAsync(object, BaseMetroDialog, MetroDialogSettings) Task
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).

ShowModalInputExternal(object, string, string, MetroDialogSettings) string
Shows the input dialog.
ShowModalLoginExternal(object, string, string, LoginDialogSettings) LoginDialogData
Creates a LoginDialog outside of the current window.
ShowModalMessageExternal(object, string, string, MessageDialogStyle, MetroDialogSettings) MessageDialogResult
Creates a MessageDialog outside of the current window.
ShowProgressAsync(object, string, string, bool, MetroDialogSettings) Task<ProgressDialogController>
Creates a ProgressDialog inside of the current window.