Summary
Creates a LoginDialog inside of the current window.
Syntax
Task<LoginDialogData> ShowLoginAsync(object context, string title, string message, LoginDialogSettings settings = null)
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). |
| 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. |