Table of Contents

Class WorkPieceTreeItemViewModel

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

Represents a view model for a WorkPiece.

public class WorkPieceTreeItemViewModel : TreeItemBase<WorkPiece>, INotifyPropertyChangedEx, INotifyPropertyChanged, ITreeItem
Inheritance
PropertyChangedBase
WorkPieceTreeItemViewModel
Implements
INotifyPropertyChangedEx
Inherited Members
PropertyChangedBase.Refresh()
PropertyChangedBase.IsNotifying
PropertyChangedBase.PropertyChanged
Extension Methods

Examples

This example shows how to display a work piece and its additional parameters.

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

    public WorkPieceTreeItemViewModel WorkPieceViewModel { get; } = new WorkPieceTreeItemViewModel();
}

Constructors

WorkPieceTreeItemViewModel()

Initializes a new instance of the WorkPieceTreeItemViewModel class.

public WorkPieceTreeItemViewModel()

Properties

AdditionalParametersVM

Gets or sets the view model for the WorkPieceParameter (AdditionalParameter). A kind of header.

public AdditionalParametersViewModel<WorkPiece, WorkPieceParameter> AdditionalParametersVM { get; set; }

Property Value

AdditionalParametersViewModel<WorkPiece, WorkPieceParameter>

Model

Gets or sets the model.

public override WorkPiece Model { get; set; }

Property Value

WorkPiece

TreeItemName

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

[DependsOn("Model")]
public override string TreeItemName { get; }

Property Value

string