MVUish.Avalonia
MVUish.Avalonia is a lightweight, performant Model-View-Update (MVU) library for Avalonia, designed for both C# and F#.
Traditional MVU implementations (Elm, Fabulous, Avalonia.FuncUI) rebuild a virtual tree on every model change and diff it against the previous one. MVUish.Avalonia implements a Model-Update-Observable pattern instead: your view function runs once, receives an IObservable<Model>, and binds control properties directly to the stream. There is no VDOM and no tree diffing.
Installation
|
The dotnet new project templates ship as a separate package:
|
Requirements
- .NET 10
- Avalonia 12
The samples and templates also use NXUI 12 for code-built views.
In these docs
- Getting Started: your first counter in C# and F#, and how to wire it into an NXUI bootstrap.
- The Reactive MVU Pattern: the model-update-observable loop, commands, subscriptions, and module composition.
- Collections: keyed and structural
BindItemsSourcebindings for efficient lists.
MVUish.Avalonia