Class ProgressBarViewModel
View model class that provides properties and methods for showing and updating a progress bar in a long-running operation. It also provides functionality for canceling the operation.
Inherited Members
Namespace: Benday.Presentation
Assembly: Benday.Presentation.dll
Syntax
public class ProgressBarViewModel : ViewModelBase, IProgressBarViewModel, INotifyPropertyChanged
Constructors
| Edit this page View SourceProgressBarViewModel()
Declaration
public ProgressBarViewModel()
Properties
| Edit this page View SourceCancelOperationCommand
Gets or sets the cancel operation command.
Declaration
public ICommand CancelOperationCommand { get; }
Property Value
Type | Description |
---|---|
ICommand |
IsCancelable
Gets or sets value indicating if the operation is cancelable.
Declaration
public bool IsCancelable { get; set; }
Property Value
Type | Description |
---|---|
bool |
IsProgressBarVisible
Gets or sets a value indicating whether the progress bar is visible.
Declaration
public bool IsProgressBarVisible { get; set; }
Property Value
Type | Description |
---|---|
bool |
ProgressBarMessage
Gets or sets the progress bar message.
Declaration
public string ProgressBarMessage { get; set; }
Property Value
Type | Description |
---|---|
string |
Events
| Edit this page View SourceOnCancelRequested
Event raised when the cancel operation is requested.
Declaration
public event EventHandler? OnCancelRequested
Event Type
Type | Description |
---|---|
EventHandler |