Table of Contents

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
PropertyChangedBase
ItemViewModel
Implements
INotifyPropertyChangedEx
Derived
Inherited Members
PropertyChangedBase.Refresh()
PropertyChangedBase.IsNotifying
PropertyChangedBase.PropertyChanged
Extension Methods

Constructors

ItemViewModel(ILisrtModule)

Initializes a new instance of the ItemViewModel class.

public ItemViewModel(ILisrtModule module)

Parameters

module ILisrtModule

The model for the view.

Properties

DefaultIcon

Gets the default icon for a ILisrtModule.

protected static Uri DefaultIcon { get; }

Property Value

Uri

DisplayText

Gets the text to display.

public virtual string DisplayText { get; }

Property Value

string

InitializationState

Gets the initialization state if Module is IInitializable, otherwise null.

public InitializationState? InitializationState { get; }

Property Value

InitializationState?

Module

Gets or sets the relevant module for the ViewModel.

public ILisrtModule Module { get; set; }

Property Value

ILisrtModule

ModuleEnabled

Gets a value indicating whether the module is enabled.

public bool ModuleEnabled { get; }

Property Value

bool

ModuleFullName

Gets the full name from the module with the point between sub modules.

public string ModuleFullName { get; }

Property Value

string

ModuleMainIcon

Gets the icon from the module.

public Uri ModuleMainIcon { get; }

Property Value

Uri

ModuleName

Gets the name from the module.

public string ModuleName { get; }

Property Value

string