Class OperatingModeViewModel
- Namespace
- Loehnert.Lisrt.OperatingMode.ViewModels
- Assembly
- Loehnert.Lisrt.dll
View Model for a IOperatingMode with IOperatingModeManager.
public class OperatingModeViewModel : PropertyChangedBase, INotifyPropertyChangedEx, INotifyPropertyChanged
- Inheritance
-
PropertyChangedBaseOperatingModeViewModel
- Implements
-
INotifyPropertyChangedEx
- Inherited Members
-
PropertyChangedBase.Refresh()PropertyChangedBase.IsNotifyingPropertyChangedBase.PropertyChanged
Constructors
OperatingModeViewModel(IOperatingMode, IOperatingModeManager)
Initializes a new instance of the OperatingModeViewModel class.
public OperatingModeViewModel(IOperatingMode mode, IOperatingModeManager modeManager)
Parameters
mode
IOperatingModeOperating mode for the view model.
modeManager
IOperatingModeManagerOperating mode manager for the view model.
Properties
Description
Gets the localizable description.
public string Description { get; }
Property Value
IsActivating
Gets a value indicating whether the operating mode is activating.
public bool IsActivating { get; }
Property Value
IsActive
Gets a value indicating whether the operating mode is active.
public bool IsActive { get; }
Property Value
OperatingMode
Gets the operating mode.
public IOperatingMode OperatingMode { get; }
Property Value
SetOperatingMode
Gets the async, relay command with exception handling for set operating mode.
public IAsyncCommand SetOperatingMode { get; }