DialogManager.

ShowLoginAsync(MetroWindow, string, string, LoginDialogSettings) Method

Summary

Creates a LoginDialog inside of the current window.
Namespace
MahApps.Metro.Controls.Dialogs
Containing Type
DialogManager

Syntax

public static Task<LoginDialogData> ShowLoginAsync(this MetroWindow window, string title, string message, LoginDialogSettings settings = null)

Parameters

Name Type Description
window MetroWindow The window that is the parent of the dialog.
title string The title of the LoginDialog.
message string The message contained within the LoginDialog.
settings LoginDialogSettings Optional settings that override the global metro dialog settings.

Return Value

Type Description
Task<LoginDialogData> The text that was entered or null (Nothing in Visual Basic) if the user cancelled the operation.