Table of Contents

Class CustomNodeViewModel

Namespace
Artemis.UI.Shared.VisualScripting
Assembly
Artemis.UI.Shared.dll

Represents a custom view model for a node

public abstract class CustomNodeViewModel : ReactiveValidationObject, IReactiveNotifyPropertyChanged<IReactiveObject>, IHandleObservableErrors, IReactiveObject, IEnableLogger, IValidatableViewModel, IDisposable, IActivatableViewModel, ICustomNodeViewModel
Inheritance
object
ReactiveObject
ReactiveValidationObject
CustomNodeViewModel
Implements
IReactiveNotifyPropertyChanged<IReactiveObject>
IHandleObservableErrors
IReactiveObject
IEnableLogger
IValidatableViewModel
IActivatableViewModel
Inherited Members
ReactiveValidationObject.Dispose()
ReactiveValidationObject.HasErrors
ReactiveValidationObject.ValidationContext
ReactiveValidationObject.ErrorsChanged
ReactiveObject.SuppressChangeNotifications()
ReactiveObject.AreChangeNotificationsEnabled()
ReactiveObject.DelayChangeNotifications()
ReactiveObject.Changing
ReactiveObject.Changed
ReactiveObject.ThrownExceptions
ReactiveObject.PropertyChanging
ReactiveObject.PropertyChanged

Constructors

CustomNodeViewModel(INode, INodeScript)

Creates a new instance of the CustomNodeViewModel class.

protected CustomNodeViewModel(INode node, INodeScript script)

Parameters

node INode

The node the view model is for.

script INodeScript

The script the node is contained in.

Properties

Activator

public ViewModelActivator Activator { get; }

Property Value

ViewModelActivator

Node

Gets the node the view model is for.

public INode Node { get; }

Property Value

INode

Script

Gets script the node is contained in.

public INodeScript Script { get; }

Property Value

INodeScript

Methods

OnNodeModified()

Invokes the NodeModified event

protected virtual void OnNodeModified()

Events

NodeModified

Occurs whenever the node was modified by the view model

public event EventHandler? NodeModified

Event Type

EventHandler