IDialogCoordinator.

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

Summary

Creates a MessageDialog inside of the current window.

Syntax

Task<MessageDialogResult> ShowMessageAsync(object context, string title, string message, MessageDialogStyle style = Affirmative, MetroDialogSettings 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 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.