Table of Contents

Class ResultsViewModel

Namespace
Loehnert.Lisrt.TypeAndResult.ResultsControl.ViewModels
Assembly
Loehnert.Lisrt.TypeAndResult.dll

Represents a view model for a WorkPiece with its measurement data.

public class ResultsViewModel : PropertyChangedBase, INotifyPropertyChangedEx, INotifyPropertyChanged
Inheritance
PropertyChangedBase
ResultsViewModel
Implements
INotifyPropertyChangedEx
Inherited Members
PropertyChangedBase.Refresh()
PropertyChangedBase.IsNotifying
PropertyChangedBase.PropertyChanged

Examples

This example shows how to display a work piece and its measurement data.

public class MyViewModel
{
    public WorkPiece WorkPiece
    {
        get => ResultsViewModel.WorkPiece;
        set => ResultsViewModel.WorkPiece = value;
    }

    public ResultsViewModel ResultsViewModel { get; } = new ResultsViewModel();
}

Constructors

ResultsViewModel()

Initializes a new instance of the ResultsViewModel class.

public ResultsViewModel()

Properties

FirstGeneration

Gets the first generation of type data tree items.

public ObservableCollection<ITreeItem> FirstGeneration { get; }

Property Value

ObservableCollection<ITreeItem>

IsReadOnly

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

public bool IsReadOnly { get; set; }

Property Value

bool

WorkPiece

Gets or sets the WorkPiece model.

public WorkPiece WorkPiece { get; set; }

Property Value

WorkPiece