Repolode
AvaloniaUI

AvaloniaUI/Avalonia

A cross-platform .NET UI framework for building desktop, mobile, embedded and WebAssembly apps with C# and XAML.

Open-source alternative to:WPF

Stars
31,693
Forks
2,863
Open issues
1,940
Last commit
11 hours ago

What is it?

Avalonia is a cross-platform UI framework for .NET that uses a flexible styling system. It runs on Windows, macOS, Linux, iOS, Android and WebAssembly, so developers can write one XAML-based application and deploy it across these targets.

Avalonia is designed as a spiritual successor to WPF and offers a familiar development experience for XAML developers, though it is not a one-to-one copy of WPF. The project lists companies such as Schneider Electric, Unity, JetBrains and GitHub among its users. Commercial product Avalonia XPF is also offered separately to run WPF apps on macOS and Linux.

The project provides IDE support through a VS Code extension, a Visual Studio extension and community-maintained JetBrains Rider plugins. Packages are distributed via NuGet, and nightly builds are available for those who want the latest changes.

Key features

  • 01Targets Windows, macOS, Linux, iOS, Android and WebAssembly from one XAML codebase.
  • 02Includes a flexible styling system for customizing control appearance.
  • 03Follows an MVVM-friendly, WPF-like development model for XAML developers.
  • 04Offers IDE tooling with XAML previewing and code completion in VS Code and Visual Studio.

Use cases

  • Building a desktop business application that must run on Windows, macOS and Linux.
  • Porting a WPF-style XAML application toward other operating systems.
  • Creating a mobile or browser-based UI with C# and XAML.

Quick start

  1. 1

    Read the Get Started guide and set up a .NET project

  2. 2

    Install the core Avalonia package via NuGet

    Install-Package Avalonia
  3. 3

    Install the desktop package

    Install-Package Avalonia.Desktop

Things to know

  • Nightly builds are less stable than the NuGet.org releases.
  • Moving from Avalonia 11 to 12 involves breaking changes.
  • Avalonia XPF, the cross-platform WPF product, is commercial and licensed per app and platform.

Topics

FAQ

What is Avalonia?
A cross-platform .NET UI framework for building desktop, mobile, embedded and WebAssembly apps with C# and XAML. Avalonia is a cross-platform UI framework for .NET that uses a flexible styling system. It runs on Windows, macOS, Linux, iOS, Android and WebAssembly, so developers can write one XAML-based application and deploy it across these targets.
Is Avalonia free to use? What license does it have?
Avalonia is open source under the MIT license. Check the license terms before using it in commercial products.
Is Avalonia still maintained?
Actively maintained. The last commit to Avalonia was on Oct 21, 2026.
What can I use Avalonia for?
Building a desktop business application that must run on Windows, macOS and Linux. Porting a WPF-style XAML application toward other operating systems. Creating a mobile or browser-based UI with C# and XAML.
How do I install Avalonia?
Read the Get Started guide and set up a .NET project Install the core Avalonia package via NuGet: Install-Package Avalonia Install the desktop package: Install-Package Avalonia.Desktop
Where can I get Avalonia?
The source code and installation instructions are on GitHub: https://github.com/AvaloniaUI/Avalonia

Summary generated by AI from the project's README. GitHub stats refresh daily.

Related projects