Class ItemViewModel
- Namespace
- Loehnert.Lisrt.Modules.ViewModels
- Assembly
- Loehnert.Lisrt.Modules.dll
Represents a view model of an ILisrtModule in a ModuleTreeItemViewModel.
public class ItemViewModel : PropertyChangedBase, INotifyPropertyChangedEx, ITreeItem, INotifyPropertyChanged
- Inheritance
-
PropertyChangedBaseItemViewModel
- Implements
-
INotifyPropertyChangedEx
- Derived
- Inherited Members
-
PropertyChangedBase.Refresh()PropertyChangedBase.IsNotifyingPropertyChangedBase.PropertyChanged
- Extension Methods
Constructors
ItemViewModel(ILisrtModule)
Initializes a new instance of the ItemViewModel class.
public ItemViewModel(ILisrtModule module)
Parameters
module
ILisrtModuleThe model for the view.
Properties
DefaultIcon
Gets the default icon for a ILisrtModule.
protected static Uri DefaultIcon { get; }
Property Value
DisplayText
Gets the text to display.
public virtual string DisplayText { get; }
Property Value
InitializationState
Gets the initialization state if Module is IInitializable, otherwise null.
public InitializationState? InitializationState { get; }
Property Value
Module
Gets or sets the relevant module for the ViewModel.
public ILisrtModule Module { get; set; }
Property Value
ModuleEnabled
Gets a value indicating whether the module is enabled.
public bool ModuleEnabled { get; }
Property Value
ModuleFullName
Gets the full name from the module with the point between sub modules.
public string ModuleFullName { get; }
Property Value
ModuleMainIcon
Gets the icon from the module.
public Uri ModuleMainIcon { get; }
Property Value
ModuleName
Gets the name from the module.
public string ModuleName { get; }