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
TThe type of the data model
- Inheritance
-
objectReactiveObjectDataModelInputViewModel<T>
- Implements
-
IReactiveNotifyPropertyChanged<IReactiveObject>IHandleObservableErrorsIReactiveObjectIEnableLogger
- Inherited Members
-
ReactiveObject.SuppressChangeNotifications()ReactiveObject.AreChangeNotificationsEnabled()ReactiveObject.DelayChangeNotifications()ReactiveObject.ChangingReactiveObject.ChangedReactiveObject.ThrownExceptionsReactiveObject.PropertyChangingReactiveObject.PropertyChanged
Constructors
DataModelInputViewModel(DataModelPropertyAttribute, T)
Creates a new instance of the DataModelInputViewModel<T> class
protected DataModelInputViewModel(DataModelPropertyAttribute targetDescription, T initialValue)
Parameters
targetDescriptionDataModelPropertyAttributeThe description of the property this input VM is representing
initialValueTThe 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
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()