ProgressDialogController Class

Summary

A class for manipulating an open ProgressDialog.
Namespace
MahApps.Metro.Controls.Dialogs
Base Types
  • object
graph BT Type-->Base0["object"] Type["ProgressDialogController"] class Type type-node

Syntax

public class ProgressDialogController

Events

Name Type Summary
Canceled EventHandler
This event is raised when the associated ProgressDialog was cancelled by the user.
Closed EventHandler
This event is raised when the associated ProgressDialog was closed programmatically.

Properties

Name Value Summary
IsCanceled bool
Gets if the Cancel button has been pressed.
IsOpen bool
Gets if the wrapped ProgressDialog is open.
Maximum double
Gets/Sets the maximum restriction of the progress Value property.
Minimum double
Gets/Sets the minimum restriction of the progress Value property.

Methods

Name Value Summary
CloseAsync() Task
Begins an operation to close the ProgressDialog.
SetCancelable(bool) void
Sets if the Cancel button is visible.
SetIndeterminate() void
Sets the ProgressBar's IsIndeterminate to true. To set it to false, call SetProgress.
SetMessage(string) void
Sets the dialog's message content.
SetProgress(double) void
Sets the dialog's progress bar value and sets IsIndeterminate to false.
SetProgressBarForegroundBrush(Brush) void
Sets the dialog's progress bar brush.
SetTitle(string) void
Sets the dialog's title.