ReactiveUI is an advanced, composable, functional reactive model-view-viewmodel framework for all .NET platforms that is inspired by functional reactive programming. Avalonia ships its own fork of ReactiveUI in the
Avalonia.ReactiveUINuGet package. To use ReactiveUI and the MVVM Pattern in your Avalonia solutions, add the package to your project via NuGet package manager GUI or execute the following command:
dotnet add package Avalonia.ReactiveUI
Avalonia.ReactiveUIincludes Avalonia-specific helpers to handle view model-based routing, view activation and scheduling. Be sure to add
AppBuilderbefore you use any of ReactiveUI's APIs in your application.
public static class Program
public static void Main(string args) => BuildAvaloniaApp().Start<MainWindow>();
public static AppBuilder BuildAvaloniaApp()
// Add the line below to enable
// ReactiveUI support in your app.
To get started with ReactiveUI, see the Getting Started guide and the tutorial. See also the ReactiveUI Handbook which describes advanced ReactiveUI features allowing you to build complex and scalable applications with ReactiveUI. See the pages below to learn how to handle view activation and how to use routing in your Avalonia applications.
Last modified 7mo ago