Table of Contents

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
PropertyChangedBase
MeasureProcessTreeItemViewModel
Implements
INotifyPropertyChangedEx
Inherited Members
PropertyChangedBase.Refresh()
PropertyChangedBase.IsNotifying
PropertyChangedBase.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

AdditionalParametersViewModel<MeasureProcess, MeasureProcessParameter>

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

MeasureClassificationViewModel

Model

Gets or sets the MeasureProcess model.

[AlsoNotifyFor("TreeItemIcon")]
public override MeasureProcess Model { get; set; }

Property Value

MeasureProcess

Results

Gets the results.

public IEnumerable<Result> Results { get; }

Property Value

IEnumerable<Result>

TreeItemIcon

Gets the tree icon depending on the Classification.

public override Uri TreeItemIcon { get; }

Property Value

Uri

TreeItemName

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

public override string TreeItemName { get; }

Property Value

string