DialogManager Class

Namespace
MahApps.Metro.Controls.Dialogs
Base Types
  • object
graph BT Type-->Base0["object"] Type["DialogManager"] class Type type-node

Syntax

public static class DialogManager

Events

Name Type Summary
DialogClosed EventHandler<DialogStateChangedEventArgs>
static
DialogOpened EventHandler<DialogStateChangedEventArgs>
static

Methods

Name Value Summary
GetCurrentDialogAsync<TDialog>(MetroWindow) Task<TDialog>
Gets the current shown dialog in async way.
static
HideMetroDialogAsync(MetroWindow, BaseMetroDialog, MetroDialogSettings) Task
Hides a visible Metro Dialog instance.
static
ShowDialogExternally<TDialog>(TDialog, Window, Action<Window>) TDialog
Create and show an external dialog.
static
ShowInputAsync(MetroWindow, string, string, MetroDialogSettings) Task<string>
Creates a InputDialog inside of the current window.
static
ShowLoginAsync(MetroWindow, string, string, LoginDialogSettings) Task<LoginDialogData>
Creates a LoginDialog inside of the current window.
static
ShowMessageAsync(MetroWindow, string, string, MessageDialogStyle, MetroDialogSettings) Task<MessageDialogResult>
Creates a MessageDialog inside of the current window.
static
ShowMetroDialogAsync(MetroWindow, BaseMetroDialog, MetroDialogSettings) Task
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).

static
ShowMetroDialogAsync<TDialog>(MetroWindow, MetroDialogSettings) Task<TDialog>
Adds a Metro Dialog instance of the given type 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).

static
ShowModalDialogExternally<TDialog>(TDialog, Window, Action<Window>) TDialog
Create and show an external modal dialog.
static
ShowModalInputExternal(MetroWindow, string, string, MetroDialogSettings) string
Creates a InputDialog outside of the current window.
static
ShowModalLoginExternal(MetroWindow, string, string, LoginDialogSettings) LoginDialogData
Creates a LoginDialog outside of the current window.
static
ShowModalMessageExternal(MetroWindow, string, string, MessageDialogStyle, MetroDialogSettings) MessageDialogResult
Creates a MessageDialog ouside of the current window.
static
ShowProgressAsync(MetroWindow, string, string, bool, MetroDialogSettings) Task<ProgressDialogController>
Creates a ProgressDialog inside of the current window.
static