C# UI composition
NXUI
Avalonia applications expressed as compact, composable C#.
Overview
A fluent, code-first UI layer for Avalonia that composes applications entirely in C# and keeps iteration fast with hot reload.
NXUI maps Avalonia controls, properties, bindings, and application composition into fluent C#. It is especially useful when code generation, functional composition, or one-language workflows matter more than XAML tooling.
Code-first Avalonia UI
Fluent composition
Hot reload host
No XAML required
Built for
Where it fits.
- Developers who prefer code-first UI
- Generated and highly compositional interfaces
- Teams experimenting with functional Avalonia patterns
Compatibility & status
Supported
Supported
Included
Not applicable
In the work
Real output,
not a mockup.

Architecture
Clear layers.
Replaceable seams.
Application
A familiar public programming model defines the app.
Framework
Managed services coordinate layout, input, resources, and lifecycle.
Platform
Portable adapters connect rendering and operating-system services.
Quick start
From package
to first frame.
Choose the package workflow used by your repository, then start from the smallest working example. Replace VERSION with the current stable or prerelease version shown on NuGet.
dotnet add package NXUIdotnet add package NXUI.Desktop<PackageReference Include="NXUI" Version="VERSION" /><PackageVersion Include="NXUI" Version="VERSION" />object Build() => Window() .Title("NXUI") .Content(Label().Content("Hello from C#"));
return HotReloadHost.Run(Build, "NXUI", args);Package surface
Start focused.
Compose as needed.
Source, docs, samples, and releases
The repository is the source of truth.
Use the current documentation and samples, inspect changes, report issues, or support continued open-source maintenance.