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

A class for manipulating an open ProgressDialog.
Afficher le fichier Open project: MahApps/MahApps.Metro Class Usage Examples

Private Properties

Свойство Type Description
PART_NegativeButton_Click void
ProgressDialogController System

Méthodes publiques

Méthode 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

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

Method Details

CloseAsync() public méthode

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

SetCancelable() public méthode

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

SetIndeterminate() public méthode

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

SetMessage() public méthode

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

SetProgress() public méthode

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.
Résultat void

SetTitle() public méthode

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