Class ManualOperatingModeBase
- Namespace
- Loehnert.Lisrt.OperatingMode
- Assembly
- Loehnert.Lisrt.dll
Abstract base for a manual operating mode.
public abstract class ManualOperatingModeBase : PropertyChangedBase, INotifyPropertyChangedEx, INotifyPropertyChanged, IOperatingMode, IHasKey
- Inheritance
-
PropertyChangedBaseManualOperatingModeBase
- Implements
-
INotifyPropertyChangedEx
- Inherited Members
-
PropertyChangedBase.Refresh()PropertyChangedBase.IsNotifyingPropertyChangedBase.PropertyChanged
Constructors
ManualOperatingModeBase()
Initializes a new instance of the ManualOperatingModeBase class.
protected ManualOperatingModeBase()
Properties
Actions
Gets the actions for the operating mode.
public virtual ICollection<IActionViewModel> Actions { get; }
Property Value
Description
Gets the localized description for the operating mode.
public virtual ITranslation Description { get; }
Property Value
- ITranslation
Icon
Gets the icon.
public virtual Uri Icon { get; }
Property Value
IsSelectable
Gets or sets a value indicating whether the mode is selectable.
public virtual bool IsSelectable { get; protected set; }
Property Value
IsSpecial
Gets or sets a value indicating whether the mode is a special one.
public bool IsSpecial { get; set; }
Property Value
Remarks
If it is special, it will be just shown in the concealable fly out.
Key
Gets a unique key.
public virtual string Key { get; }
Property Value
ManualOperatingModeKey
Gets the default key for the manual operating mode.
public static string ManualOperatingModeKey { get; }
Property Value
Methods
CanEnable()
Gets a value indicating whether the mode can be enabled.
public abstract bool CanEnable()
Returns
- bool
True if it can be enabled. Otherwise false.
Disable()
Disables the mode.
public abstract void Disable()
Enable()
Enables the mode.
public abstract void Enable()