Discover and explore top open-source AI tools and projects—updated daily.
microsoftBuild WinUI desktop apps with a declarative C# framework
Top 79.2% on SourcePulse
Summary
Microsoft UI Reactor is an experimental C# framework for building WinUI 3 desktop apps declaratively. It brings patterns like co-located state and type-safe UI composition, familiar to React/SwiftUI developers, to WinUI. Reactor enables full C# IntelliSense and refactoring while seamlessly interop-ing with existing WinUI XAML/MVVM codebases, offering a modern development experience.
How It Works
Reactor uses a virtual element tree and reconciler to efficiently update WinUI controls. Its C# DSL replaces XAML with typed factory methods and fluent modifiers. State management is co-located with render logic via hooks (UseState, UseEffect), eliminating ViewModel boilerplate and leveraging C#'s compile-time safety for UI development.
Quick Start & Requirements
bootstrap.ps1 (approx. 3 mins). Clone repo, run .\bootstrap.ps1, then dotnet new reactorapp, cd MyApp, dotnet run.Highlighted Details
UseState, UseReducer, UseEffect, etc., for state management.--preview) and VS Code extension.Maintenance & Community
Currently "Experimental" with an expected 3-6 month iteration target. Contributions and feedback are welcome. Hosted on GitHub with all code, specs, and tests public.
Licensing & Compatibility
Limitations & Caveats
Experimental, pre-1.0; public APIs may change. Requires building from source (no NuGet). Feature maturity varies ("Draft"/"Early" areas may evolve significantly).
13 hours ago
Inactive