miroiu / nodify

Highly performant and modular controls for node-based editors designed for data-binding and MVVM.
https://miroiu.github.io/nodify
MIT License
1.3k stars 208 forks source link

[Application] Can you show a non-MVVM approach to this? #35

Closed Chevalier12 closed 1 year ago

Chevalier12 commented 2 years ago

I don't know how to use MVVM properly and was curious on how to do this, the examples aren't really simple to understand either for a beginner (when I looked into the examples I got crushed to be honest, I don't understand one bit of the implementation).

For example, I'd begin by adding children to the NodeEditor, say my first child is "Add", this "Add" is a class that has two properties called "x" and "y" with an output property called "z", then when I add this node to the NodeEditor (by using the right click context menu) it would display a simple Node with two entry points and one exit point, this exit point then being able to be fetched with a simple "MessageBox.Show(AddNode.z);".

Can it be that simple or is the entire framework based upon MVVM principles?

Chevalier12 commented 2 years ago

I want to develop a RPA software with Nodify, I wanted to know more information if that's possible (what I said in the opening post), thank you miroiu.

miroiu commented 2 years ago

Hi, it would be hard to create a non-MVVM version but here's a POC of a simplified version of Nodify that minimizes the required boilerplate: https://github.com/miroiu/nodify/tree/feature/new-blueprint