Table of Contents

Class DataModelInputViewModel<T>

Namespace
Artemis.UI.Shared.DataModelVisualization
Assembly
Artemis.UI.Shared.dll

Represents a DataModel input view model

public abstract class DataModelInputViewModel<T> : DataModelInputViewModel, IReactiveNotifyPropertyChanged<IReactiveObject>, IHandleObservableErrors, IReactiveObject, IEnableLogger

Type Parameters

T

The type of the data model

Inheritance
object
ReactiveObject
DataModelInputViewModel<T>
Implements
IReactiveNotifyPropertyChanged<IReactiveObject>
IHandleObservableErrors
IReactiveObject
IEnableLogger
Inherited Members
ReactiveObject.SuppressChangeNotifications()
ReactiveObject.AreChangeNotificationsEnabled()
ReactiveObject.DelayChangeNotifications()
ReactiveObject.Changing
ReactiveObject.Changed
ReactiveObject.ThrownExceptions
ReactiveObject.PropertyChanging
ReactiveObject.PropertyChanged

Constructors

DataModelInputViewModel(DataModelPropertyAttribute, T)

Creates a new instance of the DataModelInputViewModel<T> class

protected DataModelInputViewModel(DataModelPropertyAttribute targetDescription, T initialValue)

Parameters

targetDescription DataModelPropertyAttribute

The description of the property this input VM is representing

initialValue T

The initial value to set the input value to

Properties

InputValue

Gets or sets the value shown in the input

[AllowNull]
public T InputValue { get; set; }

Property Value

T

TargetDescription

Gets the description of the property this input VM is representing

public DataModelPropertyAttribute TargetDescription { get; }

Property Value

DataModelPropertyAttribute

Methods

Cancel()

Discards changes to the input value and removes this view model.

This is called automatically when the user presses escape

public override sealed void Cancel()

Submit()

Submits the input value and removes this view model.

This is called automatically when the user presses enter or clicks outside the view

public override sealed void Submit()