C# Class MahApps.Metro.Controls.Dialogs.ProgressDialogController

A class for manipulating an open ProgressDialog.
Mostra file Open project: MahApps/MahApps.Metro Class Usage Examples

Private Properties

Property Type Description
PART_NegativeButton_Click void
ProgressDialogController System

Public Methods

Method Description
CloseAsync ( ) : System.Threading.Tasks.Task

Begins an operation to close the ProgressDialog.

SetCancelable ( bool value ) : 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 message ) : void

Sets the dialog's message content.

SetProgress ( double value ) : void

Sets the dialog's progress bar value and sets IsIndeterminate to false.

SetTitle ( string title ) : void

Sets the dialog's title.

Private Methods

Method Description
PART_NegativeButton_Click ( object sender, RoutedEventArgs e ) : void
ProgressDialogController ( ProgressDialog dialog, Func closeCallBack ) : System

Method Details

CloseAsync() public method

Begins an operation to close the ProgressDialog.
public CloseAsync ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

SetCancelable() public method

Sets if the Cancel button is visible.
public SetCancelable ( bool value ) : void
value bool
return void

SetIndeterminate() public method

Sets the ProgressBar's IsIndeterminate to true. To set it to false, call SetProgress.
public SetIndeterminate ( ) : void
return void

SetMessage() public method

Sets the dialog's message content.
public SetMessage ( string message ) : void
message string The message to be set.
return void

SetProgress() public method

Sets the dialog's progress bar value and sets IsIndeterminate to false.
public SetProgress ( double value ) : void
value double The percentage to set as the value.
return void

SetTitle() public method

Sets the dialog's title.
public SetTitle ( string title ) : void
title string The title to be set.
return void