Show / Hide Table of Contents

Class ValueNodeInputViewModel<T>

A node input that keeps track of the latest value produced by either the connected ValueNodeOutputViewModel, or the ValueEditorViewModel in the Editor property.

Inheritance
System.Object
ReactiveUI.ReactiveObject
Endpoint
NodeInputViewModel
ValueNodeInputViewModel<T>
Implements
ReactiveUI.IReactiveNotifyPropertyChanged<ReactiveUI.IReactiveObject>
ReactiveUI.IHandleObservableErrors
ReactiveUI.IReactiveObject
System.ComponentModel.INotifyPropertyChanged
System.ComponentModel.INotifyPropertyChanging
Splat.IEnableLogger
Inherited Members
NodeInputViewModel.IsEditorVisible
NodeInputViewModel.HideEditorIfConnected
NodeInputViewModel.ConnectionValidator
NodeInputViewModel.CreatePendingConnection()
NodeInputViewModel.SetConnectionPreview(Boolean)
NodeInputViewModel.FinishPendingConnection()
Endpoint.Parent
Endpoint.Name
Endpoint.Group
Endpoint.Icon
Endpoint.Editor
Endpoint.Port
Endpoint.PortPosition
Endpoint.Connections
Endpoint.MaxConnections
Endpoint.Visibility
Endpoint.SortIndex
ReactiveUI.ReactiveObject.ReactiveUI.IReactiveObject.RaisePropertyChanging(System.ComponentModel.PropertyChangingEventArgs)
ReactiveUI.ReactiveObject.ReactiveUI.IReactiveObject.RaisePropertyChanged(System.ComponentModel.PropertyChangedEventArgs)
ReactiveUI.ReactiveObject.SuppressChangeNotifications()
ReactiveUI.ReactiveObject.AreChangeNotificationsEnabled()
ReactiveUI.ReactiveObject.DelayChangeNotifications()
ReactiveUI.ReactiveObject.Changing
ReactiveUI.ReactiveObject.Changed
ReactiveUI.ReactiveObject.ThrownExceptions
ReactiveUI.ReactiveObject.PropertyChanging
ReactiveUI.ReactiveObject.PropertyChanged
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: NodeNetwork.Toolkit.ValueNode
Assembly: NodeNetworkToolkit.dll
Syntax
public class ValueNodeInputViewModel<T> : NodeInputViewModel, IReactiveNotifyPropertyChanged<IReactiveObject>, IHandleObservableErrors, IReactiveObject, INotifyPropertyChanged, INotifyPropertyChanging, IEnableLogger
Type Parameters
Name Description
T

The type of object this input can receive

Constructors

| Improve this Doc View Source

ValueNodeInputViewModel(ValidationAction, ValidationAction)

Constructs a new ValueNodeInputViewModel with the specified ValidationActions. The default values are carefully chosen and should probably not be changed unless you know what you are doing.

Declaration
public ValueNodeInputViewModel(ValidationAction connectionChangedValidationAction = ValidationAction.PushDefaultValue, ValidationAction connectedValueChangedValidationAction = ValidationAction.IgnoreValidation)
Parameters
Type Name Description
ValidationAction connectionChangedValidationAction

The validation behaviour when the connection of this input changes.

ValidationAction connectedValueChangedValidationAction

The validation behaviour when the value of this input changes.

Properties

| Improve this Doc View Source

Value

The value currently associated with this input. If the input is not connected, the value is taken from ValueEditorViewModel.Value in the Editor property. If the input is connected, the value is taken from ValueNodeOutputViewModel.LatestValue unless the network is not traversable. Note that this value may be equal to default(T) if there is an error somewhere.

Declaration
public T Value { get; }
Property Value
Type Description
T
| Improve this Doc View Source

ValueChanged

An observable that fires when the input value changes. This may be because of a connection change, editor value change, network validation change, ...

Declaration
public IObservable<T> ValueChanged { get; }
Property Value
Type Description
System.IObservable<T>

Implements

ReactiveUI.IReactiveNotifyPropertyChanged<TSender>
ReactiveUI.IHandleObservableErrors
ReactiveUI.IReactiveObject
System.ComponentModel.INotifyPropertyChanged
System.ComponentModel.INotifyPropertyChanging
Splat.IEnableLogger

Extension Methods

ReactiveExtensions.BindList<TView, TViewModel, TData, TProperty>(TView, TViewModel, Expression<Func<TViewModel, IObservableList<TData>>>, Expression<Func<TView, TProperty>>)
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX