This is a direct port of Nodify by miroiu to Avalonia.
A collection of highly performant controls for node-based editors designed for MVVM.
The goal of the port is to keep the codebase as similar to the original code as possible, to the point, where merges from the upstream are not a problem.
🔶 A canvas application where you can draw and connect shapes.
(Note: C# in a browser is still much slower than standalone desktop C#, the performance is much better when used in a standalone application.)
🎨 A playground application where you can try all the available settings.
🌓 A state machine where each state represents an executable action, and each transition represents a condition for executing the next action.
💻 A simple "real-time" calculator where each node represents an operation that takes input and feeds its output into other node's input.
Use the NuGet package manager to install NodifyAvalonia
.
Install-Package NodifyAvalonia
And include Nodify resources:
<ResourceInclude Source="avares://Nodify/Theme.axaml" />
⚠️⚠️ Please do not confuse with Nodify.Avalonia
which is a different package ⚠️⚠️
Avalonia version compatibility chart:
Nodify version | Avalonia version |
---|---|
6.2.0 | 11.1.0 |
6.1.0 | 11.1.0 |
6.0.0 | 11.1.0-beta-2 |
5.3.0 | 11.1.0-beta-2 |
5.2.0 | 11.1.0-beta-1 |
For the wiki please refer to the original miroiu's Wiki since the API is identical, but please report bugs here. However, if you find a bug, please try to check if it also occurs in the original WPF's version.
[!NOTE]
Avalonia.Point should be used in place of System.Windows.Point (Anchor points).
If you find a bug in Avalonia port, bug reports, PRs are more than welcome. If you think this might be not related to Avalonia, please try to reproduce it first in the original WPF's version.