C# Класс MahApps.Metro.Controls.Dialogs.ProgressDialogController

A class for manipulating an open ProgressDialog.
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
PART_NegativeButton_Click void
ProgressDialogController System

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
PART_NegativeButton_Click ( object sender, RoutedEventArgs e ) : void
ProgressDialogController ( ProgressDialog dialog, Func closeCallBack ) : System

Описание методов

CloseAsync() публичный Метод

Begins an operation to close the ProgressDialog.
public CloseAsync ( ) : System.Threading.Tasks.Task
Результат System.Threading.Tasks.Task

SetCancelable() публичный Метод

Sets if the Cancel button is visible.
public SetCancelable ( bool value ) : void
value bool
Результат void

SetIndeterminate() публичный Метод

Sets the ProgressBar's IsIndeterminate to true. To set it to false, call SetProgress.
public SetIndeterminate ( ) : void
Результат void

SetMessage() публичный Метод

Sets the dialog's message content.
public SetMessage ( string message ) : void
message string The message to be set.
Результат void

SetProgress() публичный Метод

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.
Результат void

SetTitle() публичный Метод

Sets the dialog's title.
public SetTitle ( string title ) : void
title string The title to be set.
Результат void