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
-
objectReactiveObjectReactiveValidationObjectCustomNodeViewModel
- Implements
-
IReactiveNotifyPropertyChanged<IReactiveObject>IHandleObservableErrorsIReactiveObjectIEnableLoggerIValidatableViewModelIActivatableViewModel
- Inherited Members
-
ReactiveValidationObject.Dispose()ReactiveValidationObject.HasErrorsReactiveValidationObject.ValidationContextReactiveValidationObject.ErrorsChangedReactiveObject.SuppressChangeNotifications()ReactiveObject.AreChangeNotificationsEnabled()ReactiveObject.DelayChangeNotifications()ReactiveObject.ChangingReactiveObject.ChangedReactiveObject.ThrownExceptionsReactiveObject.PropertyChangingReactiveObject.PropertyChanged
Constructors
CustomNodeViewModel(INode, INodeScript)
Creates a new instance of the CustomNodeViewModel class.
protected CustomNodeViewModel(INode node, INodeScript script)
Parameters
nodeINodeThe node the view model is for.
scriptINodeScriptThe 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
Script
Gets script the node is contained in.
public INodeScript Script { get; }
Property Value
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