public ImageInputNodeViewModel() { this.Name = "Input"; this.Category = NodeCategory.Images; var editor = new ImageEditorViewModel(); ImageOutput.Name = "Image"; ImageOutput.Editor = editor; ImageOutput.ReturnType = typeof(IImage); ImageOutput.Value = editor.WhenAnyValue(e => e.Image) .Select(x => new CodecState(x)); this.Outputs.Add(ImageOutput); }