C# Класс Catel.MVVM.ProgressNotifyableViewModel

The progress notifyable view model base.
Наследование: ViewModelBase, IProgressNotifyableViewModel
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
DetailedMessageProperty PropertyData
TaskIsIndeterminateProperty PropertyData
TaskMessageProperty PropertyData
TaskNameProperty PropertyData
TaskPercentageProperty PropertyData
TaskProperty PropertyData

Private Properties

Свойство Тип Описание
OnTaskMessageChanged void
OnTaskPercentageChanged void

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

Метод Описание
ProgressNotifyableViewModel ( ) : System.ComponentModel

Initializes a new instance of the ProgressNotifyableViewModel class.

Must have a public constructor in order to be serializable.

ProgressNotifyableViewModel ( IServiceLocator serviceLocator, bool supportIEditableObject = true, bool ignoreMultipleModelsWarning = false, bool skipViewModelAttributesInitialization = false ) : System.ComponentModel

Initializes a new instance of the ViewModelBase class. This constructor allows the injection of a custom IServiceLocator.

ProgressNotifyableViewModel ( bool supportIEditableObject, bool ignoreMultipleModelsWarning, bool skipViewModelAttributesInitialization ) : System.ComponentModel

Initializes a new instance of the ProgressNotifyableViewModel class.

UpdateStatus ( int currentItem, int totalItems, ITask task ) : void

The update status.

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

Метод Описание
OnTaskMessageChanged ( ) : void

Occurs when the value of the TaskMessage property is changed.

OnTaskPercentageChanged ( ) : void

Occurs when the value of the TaskPercentage property is changed.

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

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

Initializes a new instance of the ProgressNotifyableViewModel class.
Must have a public constructor in order to be serializable.
public ProgressNotifyableViewModel ( ) : System.ComponentModel
Результат System.ComponentModel

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

Initializes a new instance of the ViewModelBase class. This constructor allows the injection of a custom IServiceLocator.
A mapped model is not registered. A mapped model property is not found.
public ProgressNotifyableViewModel ( IServiceLocator serviceLocator, bool supportIEditableObject = true, bool ignoreMultipleModelsWarning = false, bool skipViewModelAttributesInitialization = false ) : System.ComponentModel
serviceLocator IServiceLocator The service locator to inject. If null, the will be used.
supportIEditableObject bool if set to true, the view model will natively support models that /// implement the interface.
ignoreMultipleModelsWarning bool if set to true, the warning when using multiple models is ignored.
skipViewModelAttributesInitialization bool if set to true, the initialization will be skipped and must be done manually via .
Результат System.ComponentModel

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

Initializes a new instance of the ProgressNotifyableViewModel class.
A mapped model is not registered. A mapped model property is not found.
public ProgressNotifyableViewModel ( bool supportIEditableObject, bool ignoreMultipleModelsWarning, bool skipViewModelAttributesInitialization ) : System.ComponentModel
supportIEditableObject bool if set to true, the view model will natively support models that /// implement the interface.
ignoreMultipleModelsWarning bool if set to true, the warning when using multiple models is ignored.
skipViewModelAttributesInitialization bool /// if set to true, the initialization will be skipped and must be done manually via . ///
Результат System.ComponentModel

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

The update status.
The is null.
public UpdateStatus ( int currentItem, int totalItems, ITask task ) : void
currentItem int The current item.
totalItems int The total items.
task ITask The task
Результат void

Описание свойств

DetailedMessageProperty публичное статическое свойство

Register the DetailedMessage property so it is known in the class.
public static PropertyData DetailedMessageProperty
Результат PropertyData

TaskIsIndeterminateProperty публичное статическое свойство

Register the TaskPercentage property so it is known in the class.
public static PropertyData TaskIsIndeterminateProperty
Результат PropertyData

TaskMessageProperty публичное статическое свойство

Register the TaskMessage property so it is known in the class.
public static PropertyData TaskMessageProperty
Результат PropertyData

TaskNameProperty публичное статическое свойство

Register the TaskName property so it is known in the class.
public static PropertyData TaskNameProperty
Результат PropertyData

TaskPercentageProperty публичное статическое свойство

Register the TaskPercentage property so it is known in the class.
public static PropertyData TaskPercentageProperty
Результат PropertyData

TaskProperty публичное статическое свойство

Register the Task property so it is known in the class.
public static PropertyData TaskProperty
Результат PropertyData