Class DataModelInputViewModel<T>
Represents a DataModel input view model
Implements
IReactiveNotifyPropertyChanged<IReactiveObject>
IHandleObservableErrors
IReactiveObject
IEnableLogger
Inherited Members
ReactiveObject.SuppressChangeNotifications()
ReactiveObject.AreChangeNotificationsEnabled()
ReactiveObject.DelayChangeNotifications()
ReactiveObject.Changing
ReactiveObject.Changed
ReactiveObject.ThrownExceptions
ReactiveObject.PropertyChanging
ReactiveObject.PropertyChanged
Namespace: Artemis.UI.Shared.DataModelVisualization
Assembly: Artemis.UI.Shared.dll
Syntax
public abstract class DataModelInputViewModel<T> : DataModelInputViewModel, IReactiveNotifyPropertyChanged<IReactiveObject>, IHandleObservableErrors, IReactiveObject, IEnableLogger
Type Parameters
Name | Description |
---|---|
T | The type of the data model |
Constructors
DataModelInputViewModel(DataModelPropertyAttribute, T)
Creates a new instance of the DataModelInputViewModel<T> class
Declaration
protected DataModelInputViewModel(DataModelPropertyAttribute targetDescription, T initialValue)
Parameters
Type | Name | Description |
---|---|---|
DataModelPropertyAttribute | targetDescription | The description of the property this input VM is representing |
T | initialValue | The initial value to set the input value to |
Properties
InputValue
Gets or sets the value shown in the input
Declaration
public T InputValue { get; set; }
Property Value
Type | Description |
---|---|
T |
TargetDescription
Gets the description of the property this input VM is representing
Declaration
public DataModelPropertyAttribute TargetDescription { get; }
Property Value
Type | Description |
---|---|
DataModelPropertyAttribute |
Methods
Cancel()
Discards changes to the input value and removes this view model.
This is called automatically when the user presses escape
Declaration
public override sealed void Cancel()
Overrides
Submit()
Submits the input value and removes this view model.
This is called automatically when the user presses enter or clicks outside the view
Declaration
public override sealed void Submit()
Overrides
Implements
ReactiveUI.IReactiveNotifyPropertyChanged<TSender>
ReactiveUI.IHandleObservableErrors
ReactiveUI.IReactiveObject
Splat.IEnableLogger