DialogManager.

ShowMessageAsync(MetroWindow, string, string, MessageDialogStyle, MetroDialogSettings) Method

Summary

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

Syntax

public static Task<MessageDialogResult> ShowMessageAsync(this MetroWindow window, string title, string message, MessageDialogStyle style = Affirmative, MetroDialogSettings settings = null)

Parameters

Name Type Description
window MetroWindow The MetroWindow
title string The title of the MessageDialog.
message string The message contained within the MessageDialog.
style MessageDialogStyle The type of buttons to use.
settings MetroDialogSettings Optional settings that override the global metro dialog settings.

Return Value

Type Description
Task<MessageDialogResult> A task promising the result of which button was pressed.