using DynamicData; using NodeNetwork.Toolkit.ValueNode; using NodeNetwork.ViewModels; using NodeNetwork.Views; using ReactiveUI; namespace ExampleCalculatorApp.ViewModels.Nodes { public class OutputNodeViewModel : NodeViewModel { static OutputNodeViewModel() { Splat.Locator.CurrentMutable.Register(() => new NodeView(), typeof(IViewFor)); } public ValueNodeInputViewModel ResultInput { get; } public OutputNodeViewModel() { Name = "Output"; this.CanBeRemovedByUser = false; ResultInput = new ValueNodeInputViewModel { Name = "Value", Editor = new IntegerValueEditorViewModel() }; this.Inputs.Add(ResultInput); } } }