DialogManager.

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

Summary

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

Syntax

public static MessageDialogResult ShowModalMessageExternal(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
MessageDialogResult A task promising the result of which button was pressed.