NodifyAvalonia 6.0.0

dotnet add package NodifyAvalonia --version 6.0.0
NuGet\Install-Package NodifyAvalonia -Version 6.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="NodifyAvalonia" Version="6.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add NodifyAvalonia --version 6.0.0
#r "nuget: NodifyAvalonia, 6.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install NodifyAvalonia as a Cake Addin
#addin nuget:?package=NodifyAvalonia&version=6.0.0

// Install NodifyAvalonia as a Cake Tool
#tool nuget:?package=NodifyAvalonia&version=6.0.0

NodifyAvalonia <img src="https://github.com/BAndysc/nodify-avalonia/assets/5689666/3b9fe4bd-30c8-4ac7-9b4c-5f1864b83e41" width="120px" alt="Nodify.Avalonia" align="right">

NuGet NuGet License C#

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.

🚀 Examples of node-based applications

🎨 A playground application where you can try all the available settings.

Examples/Nodify.Playground

Playground

🌓 A state machine where each state represents an executable action, and each transition represents a condition for the next action to execute.

Examples/Nodify.StateMachine

StateMachine

💻 A simple "real-time" calculator where each node represents an operation that takes input and feeds its output into other nodes input.

Examples/Nodify.Calculator

Calculator

📥 Installation

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.0.0 11.1.0-beta-2
5.3.0 11.1.0-beta-2
5.2.0 11.1.0-beta-1

⭐️ Features

  • Designed from the start to work with MVVM
  • No dependencies other than WPF Avalonia
  • Optimized for interactions with hundreds of nodes at once
  • Built-in dark and light themes
  • Selecting, zooming, panning with auto panning when close to edge
  • Select, move and connect nodes
  • Lots of configurable dependency properties
  • Ready for undo/redo
  • Example applications: 🎨 Playground, 🌓 State machine, 💻 Calculator

📝 Documentation

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.

❤️ Contributing

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.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETStandard 2.0

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
6.0.0 69 5/13/2024
5.2.0.1 165 3/28/2024
5.2.0 101 3/24/2024
5.2.0-beta2 65 3/24/2024

> - Breaking Changes:
     >  - Added a parameter for the orientation to DrawArrowGeometry, DrawDefaultArrowhead, DrawRectangleArrowhead and DrawEllipseArrowhead in BaseConnection
     >  - Added source and target parameters to GetTextPosition in BaseConnection
     >  - EditorGestures is now a singleton instead of a static class (can be inherited to create custom mappings)
     >  - Selection gestures for ItemContainer and GroupingNode are now separated from the NodifyEditor selection gestures
     >  - Renamed EditorGestures.Editor.Zoom to ZoomModifierKey
     > - Features:
     >  - Added SourceOrientation and TargetOrientation to BaseConnection to support vertical connectors (vertical/mixed connection orientation)
     >  - Added DirectionalArrowsCount to BaseConnection to allow drawing multipe arrows on a connection flowing in the connection direction
     >  - Added DrawDirectionalArrowsGeometry and DrawDirectionalArrowheadGeometry to BaseConnection to allow customizing the directional arrows
     >  - Improved EditorGestures to allow changing input gestures at runtime
     >  - Added new gesture types: AnyGesture, AllGestures, and InputGestureRef
     >  - Added Orientation dependency property to NodeInput and NodeOutput
     >  - Added DirectionalArrowsOffset dependency property to BaseConnection
     >  - Added StartAnimation and StopAnimation methods to BaseConnection
     > - Bugfixes:
     >  - Fixed BaseConnection.Text not always displaying in the center of the connection
     >  - Fixed a bug where the item container would incorrectly transition to the dragging state on mouse over