Table of Contents

Class TreeItemBase<TModel>

Namespace
Loehnert.Lisrt.TypeAndResult.VisualTreeHelpers
Assembly
Loehnert.Lisrt.TypeAndResult.dll

Represents tree item base for the results control.

public abstract class TreeItemBase<TModel> : PropertyChangedBase, INotifyPropertyChangedEx, INotifyPropertyChanged, ITreeItem where TModel : class

Type Parameters

TModel

The model for the tree item. E. g. MeasureProcess.

Inheritance
PropertyChangedBase
TreeItemBase<TModel>
Implements
INotifyPropertyChangedEx
Derived
Inherited Members
PropertyChangedBase.Refresh()
PropertyChangedBase.IsNotifying
PropertyChangedBase.PropertyChanged
Extension Methods

Constructors

TreeItemBase()

Initializes a new instance of the TreeItemBase<TModel> class. Creates an tree item without parent (null).

protected TreeItemBase()

Properties

IsExpanded

Gets or sets a value indicating whether the tree item is expanded in the tree.

public virtual bool IsExpanded { get; set; }

Property Value

bool

IsReadOnly

Gets or sets a value indicating whether the tree item is read only.

[DoNotNotify]
public virtual bool IsReadOnly { get; set; }

Property Value

bool

IsSelected

Gets or sets a value indicating whether the tree item is selected in the tree.

public virtual bool IsSelected { get; set; }

Property Value

bool

Model

Gets or sets the model.

public virtual TModel Model { get; set; }

Property Value

TModel

Parent

Gets or sets the parent. null if root or standalone.

[AlsoNotifyFor("IsReadOnly")]
public ITreeItem Parent { get; set; }

Property Value

ITreeItem

SubTreeItems

Gets the sub tree items throttled. SubTreeItemsSource wrapped by ThrottledObservableCollectionWrapper<T>. Prefer to add the sub tree items to the SubTreeItemsSource.

public IEnumerable<ITreeItem> SubTreeItems { get; }

Property Value

IEnumerable<ITreeItem>

SubTreeItemsSource

Gets the sub tree items.

public ObservableCollection<ITreeItem> SubTreeItemsSource { get; }

Property Value

ObservableCollection<ITreeItem>

TreeItemIcon

Gets the tree icon.

public virtual Uri TreeItemIcon { get; }

Property Value

Uri

TreeItemName

Gets the translatable Name for the tree item. Prefer to us an Gu.Localization.ITranslation.

public abstract string TreeItemName { get; }

Property Value

string