Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
R

ReactiveUI

> 前端框架
Open source

An advanced, composable, functional reactive model-view-viewmodel framework for all .NET platforms that is inspired by functional reactive programming. Reactive

8.5K stars0 likes2 views
WebsiteGitHub

About

An advanced, composable, functional reactive model-view-viewmodel framework for all .NET platforms that is inspired by functional reactive programming. Reactive



What is ReactiveUI?

ReactiveUI is a composable, cross-platform model-view-viewmodel framework for all .NET platforms that is inspired by functional reactive programming, which is a paradigm that allows you to abstract mutable state away from your user interfaces and express the idea around a feature in one readable place and improve the testability of your application.

Get Started Install Packages Watch Videos View Samples Discuss ReactiveUI

Documentation

  • RxSchedulers - Using ReactiveUI schedulers without RequiresUnreferencedCode attributes

Book

There has been an excellent book written by our Alumni maintainer Kent Boogart.

NuGet Packages

Install the following packages to start building your own ReactiveUI app. Note: some of the platform-specific packages are required. This means your app won't perform as expected until you install the packages properly. See the Installation docs page for more info.

Platform ReactiveUI Package NuGet
.NET Standard ReactiveUI CoreBadge
Any ReactiveUI.SourceGenerators SGBadge
Unit Testing ReactiveUI.Testing TestBadge
WPF ReactiveUI.WPF WpfBadge
WinUI ReactiveUI.WinUI WinUiBadge
MAUI ReactiveUI.Maui MauiBadge
Windows Forms ReactiveUI.WinForms WinBadge
AndroidX ReactiveUI.AndroidX DroXBadge
Blazor ReactiveUI.Blazor BlazBadge
Platform Uno ReactiveUI.Uno UnoBadge
Platform Uno ReactiveUI.Uno.WinUI UnoWinUiBadge
Avalonia ReactiveUI.Avalonia AvaBadge
Any ReactiveUI.Validation ValBadge
Any ReactiveUI.Extensions ExtBadge

Choosing a distribution: ReactiveUI.Primitives or System.Reactive

ReactiveUI ships in two interchangeable distributions with an identical public API, both built on the same ReactiveUI.Primitives engine and the same high-performance custom schedulers/sinks. The only difference is which reactive interop types appear in the public API — so you pick a distribution, you don't rewrite code:

You want… Reference these packages Public reactive types
The new, lighter default (no System.Reactive dependency) ReactiveUI, ReactiveUI.Wpf, ReactiveUI.WinForms, ReactiveUI.WinUI, ReactiveUI.Maui, ReactiveUI.Blazor, ReactiveUI.AndroidX, … ReactiveUI.Primitives — RxVoid, ISequencer, Signal<T>
Drop-in interop with existing System.Reactive code ReactiveUI.Reactive, ReactiveUI.Wpf.Reactive, ReactiveUI.WinForms.Reactive, ReactiveUI.WinUI.Reactive, ReactiveUI.Maui.Reactive, ReactiveUI.Blazor.Reactive, … System.Reactive — Unit, IScheduler

The .Reactive family is not "old ReactiveUI" — it runs on the exact same Primitives engine and custom schedulers as the default and simply surfaces System.Reactive.Unit/IScheduler (and Subject<T>) so it composes with code that already uses System.Reactive.

The default distribution drops the System.Reactive dependency for a smaller closure and a better trimming/AOT story, and is markedly faster on the hottest MVVM paths — in representative micro-benchmarks roughly 3–4× faster on WhenAnyValue/ToProperty subscribe and emit, with 5–13× less allocation (for example WhenAnyValue emit drops from ~6.8 MB to ~0.5 MB per run, and ToProperty construction from ~7.3 µs to ~1.0 µs). The fast schedulers now live in ReactiveUI.Primitives and back both distributions.

If you take the default packages, note the public reactive types change: IScheduler → ISequencer, System.Reactive.Unit → RxVoid, and Subject<T>/BehaviorSubject<T> → Signal<T>/BehaviorSignal<T>. To upgrade with zero source changes, reference the matching *.Reactive packages instead — they keep IScheduler, Unit and Subject<T>.

Core routing (RoutingState, IScreen, RoutedViewHost) stays in the main package, but the DynamicData change-set routing/collection/auto-persist helpers now live in a separate ReactiveUI.Routing package (ReactiveUI.Routing.Reactive for the System.Reactive flavor), so core no longer depends on DynamicData. Add ReactiveUI.Routing if you use those extensions.

Analyzers are opt-in

The ReactiveUI packages reference ReactiveUI.Primitives with ExcludeAssets="analyzers", so the analyzers that ship inside ReactiveUI.Primitives do not flow to your project and will not run against your code just because you installed ReactiveUI. We don't impose our analyzers on downstream consumers. If you want them, opt in explicitly by adding a direct reference to ReactiveUI.Primitives (without excluding the analyzer assets), e.g.:

xml
<PackageReference Include="ReactiveUI.Primitives" Version="x.y.z" />

Sponsorship

The core team members, ReactiveUI contributors and contributors in the ecosystem do this open-source work in their free time. If you use ReactiveUI, a serious task, and you'd like us to invest more time on it, please donate. This project increases your income/productivity too. It makes development and applications faster and it reduces the required bandwidth.

Become a sponsor.

Migration from Xamarin and .NET 8 MAUI

Xamarin Users

As of May 2024, Microsoft ended support for Xamarin per their support policy. ReactiveUI has removed support for legacy Xamarin platforms in favor of modern .NET MAUI. For Xamarin projects:

  • Xamarin.Forms → Migrate to MAUI and use ReactiveUI.Maui
  • Xamarin.Android → Migrate to MAUI Android or use ReactiveUI.AndroidX for native Android
  • Xamarin.iOS/Mac → Migrate to MAUI iOS/Mac Catalyst

For guidance on migrating from Xamarin to MAUI, see the official migration documentation.

MAUI Users

ReactiveUI supports .NET 9 and .NET 10 for MAUI platforms:

  • net10.0-android / net9.0-android
  • net10.0-ios / net9.0-ios
  • net10.0-maccatalyst / net9.0-maccatalyst
  • net10.0-windows10.0.19041.0 / net9.0-windows10.0.19041.0

Non-MAUI net8.0 library targets remain fully supported.

Examples

Platform-specific sample applications are included in src/examples/:

Sample Platform Description
ReactiveUI.Samples.Wpf WPF Login form with reactive bindings, PasswordBox event marshaling
ReactiveUI.Samples.Winforms WinForms Login form with IViewFor, programmatic UI layout
ReactiveUI.Samples.Maui MAUI Cross-platform login with Shell navigation, ReactiveContentPage
ReactiveUI.Builder.WpfApp WPF Multi-instance chat app with routing, suspension, and network sync
ReactiveUI.Builder.BlazorServer Blazor Server Chat app with server-side Blazor and reactive components

All samples target .NET 10, use RxAppBuilder for initialization,

Issues· 1 open

View all issuesOpen on GitHub
  • #3737

    Dependency Dashboard

    Updated Sep 28, 2026
  • #4456

    [Bug]: WPF thread error in v24

    bugUpdated Sep 11, 2026
  • #4455

    [Bug]: ExpressionRewriter overrides trigger IL2046 and IL3051 during Native AOT publishing

    bugUpdated Sep 8, 2026

> Tags

C#androidcsharpdotnetfirst-timers

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 30, 2026
Category前端框架
PricingOpen source

> Related tools

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架