Class MeasureProcessTreeItemViewModel
- Namespace
- Loehnert.Lisrt.TypeAndResult.ResultsControl.ViewModels
- Assembly
- Loehnert.Lisrt.TypeAndResult.dll
Represents a view model for a MeasureProcess.
public class MeasureProcessTreeItemViewModel : TreeItemBase<MeasureProcess>, INotifyPropertyChangedEx, INotifyPropertyChanged, ITreeItem
- Inheritance
-
PropertyChangedBaseMeasureProcessTreeItemViewModel
- Implements
-
INotifyPropertyChangedEx
- Inherited Members
-
PropertyChangedBase.Refresh()PropertyChangedBase.IsNotifyingPropertyChangedBase.PropertyChanged
- Extension Methods
Examples
This example shows how to display a complete measure process with results.
public class MyViewModel
{
public MeasureProcessTreeItemViewModel MeasureProcessViewModel { get; } = new MeasureProcessTreeItemViewModel();
public void SetMeasureProcess(MeasureProcess measureProcess)
{
MeasureProcessViewModel.Model = measureProcess;
}
}
Constructors
MeasureProcessTreeItemViewModel()
Initializes a new instance of the MeasureProcessTreeItemViewModel class, without an parent (root or standalone).
public MeasureProcessTreeItemViewModel()
Properties
AdditionalParametersVM
Gets the view model for the MeasureProcessParameter (AdditionalParameter). A kind of header.
public AdditionalParametersViewModel<MeasureProcess, MeasureProcessParameter> AdditionalParametersVM { get; }
Property Value
MeasureClassificationVM
Gets or sets the view model for the classification with time stamps and duration. A kind of header.
public MeasureClassificationViewModel MeasureClassificationVM { get; set; }
Property Value
Model
Gets or sets the MeasureProcess model.
[AlsoNotifyFor("TreeItemIcon")]
public override MeasureProcess Model { get; set; }
Property Value
Results
Gets the results.
public IEnumerable<Result> Results { get; }
Property Value
TreeItemIcon
Gets the tree icon depending on the Classification.
public override Uri TreeItemIcon { get; }
Property Value
TreeItemName
Gets the translatable Name for the tree item. Prefer to us an Gu.Localization.ITranslation.
public override string TreeItemName { get; }