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
-
PropertyChangedBaseTreeItemBase<TModel>
- Implements
-
INotifyPropertyChangedEx
- Derived
- Inherited Members
-
PropertyChangedBase.Refresh()PropertyChangedBase.IsNotifyingPropertyChangedBase.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
IsReadOnly
Gets or sets a value indicating whether the tree item is read only.
[DoNotNotify]
public virtual bool IsReadOnly { get; set; }
Property Value
IsSelected
Gets or sets a value indicating whether the tree item is selected in the tree.
public virtual bool IsSelected { get; set; }
Property Value
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
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
SubTreeItemsSource
Gets the sub tree items.
public ObservableCollection<ITreeItem> SubTreeItemsSource { get; }
Property Value
TreeItemIcon
Gets the tree icon.
public virtual Uri TreeItemIcon { get; }
Property Value
TreeItemName
Gets the translatable Name for the tree item. Prefer to us an Gu.Localization.ITranslation.
public abstract string TreeItemName { get; }