IDialogCoordinator.

ShowProgressAsync(object, string, string, bool, MetroDialogSettings) Method

Summary

Creates a ProgressDialog inside of the current window.

Syntax

Task<ProgressDialogController> ShowProgressAsync(object context, string title, string message, bool isCancelable = false, 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 ProgressDialog.
message string The message within the ProgressDialog.
isCancelable bool Determines if the cancel button is visible.
settings MetroDialogSettings Optional Settings that override the global metro dialog settings.

Return Value

Type Description
Task<ProgressDialogController> A task promising the instance of ProgressDialogController for this operation.