C# Class Catel.MVVM.ProgressNotifyableViewModel

The progress notifyable view model base.
Inheritance: ViewModelBase, IProgressNotifyableViewModel
ファイルを表示 Open project: Catel/Catel

Public Properties

Property Type Description
DetailedMessageProperty PropertyData
TaskIsIndeterminateProperty PropertyData
TaskMessageProperty PropertyData
TaskNameProperty PropertyData
TaskPercentageProperty PropertyData
TaskProperty PropertyData

Private Properties

Property Type Description
OnTaskMessageChanged void
OnTaskPercentageChanged void

Public Methods

Method Description
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.

Private Methods

Method Description
OnTaskMessageChanged ( ) : void

Occurs when the value of the TaskMessage property is changed.

OnTaskPercentageChanged ( ) : void

Occurs when the value of the TaskPercentage property is changed.

Method Details

ProgressNotifyableViewModel() public method

Initializes a new instance of the ProgressNotifyableViewModel class.
Must have a public constructor in order to be serializable.
public ProgressNotifyableViewModel ( ) : System.ComponentModel
return System.ComponentModel

ProgressNotifyableViewModel() public method

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 .
return System.ComponentModel

ProgressNotifyableViewModel() public method

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 . ///
return System.ComponentModel

UpdateStatus() public method

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
return void

Property Details

DetailedMessageProperty public_oe static_oe property

Register the DetailedMessage property so it is known in the class.
public static PropertyData DetailedMessageProperty
return PropertyData

TaskIsIndeterminateProperty public_oe static_oe property

Register the TaskPercentage property so it is known in the class.
public static PropertyData TaskIsIndeterminateProperty
return PropertyData

TaskMessageProperty public_oe static_oe property

Register the TaskMessage property so it is known in the class.
public static PropertyData TaskMessageProperty
return PropertyData

TaskNameProperty public_oe static_oe property

Register the TaskName property so it is known in the class.
public static PropertyData TaskNameProperty
return PropertyData

TaskPercentageProperty public_oe static_oe property

Register the TaskPercentage property so it is known in the class.
public static PropertyData TaskPercentageProperty
return PropertyData

TaskProperty public_oe static_oe property

Register the Task property so it is known in the class.
public static PropertyData TaskProperty
return PropertyData