跨平台的 .NET UI框架

Nikita Tsukanov b7e95c2b09 Added IDispatcherImplWithExplicitBackgroundProcessing to EpollDispatcherImpl. (#21152) 5 jam lalu
.github 4218e0ea7d Add check for forked PRs in update-api workflow 1 Minggu lalu
.ncrunch 70f3bef705 Add CompiledBinding.Create factory methods from LINQ expressions (#20443) 2 bulan lalu
.nuke 37526dc904 Fix dnx random failures (#20284) 3 bulan lalu
build 04558f0768 Master now targets 12.1 3 hari lalu
docs 853975ca7c Switch solution to SLNX (#21057) 1 Minggu lalu
external d78cdd1c8c Fix/linux atspi backend (#21072) 1 Minggu lalu
native 9f8f6d9892 Announce changes to live regions on macOS (#21045) 2 hari lalu
nukebuild 853975ca7c Switch solution to SLNX (#21057) 1 Minggu lalu
packages ea7e9a7aed Onboard onto Central Package Management (#20704) 1 bulan lalu
samples f960884d9d Win32: fix None/BorderOnly maximized position on secondary screens (#21136) 5 jam lalu
scripts 4dc87d6cbc update replace scripts. 6 tahun lalu
src b7e95c2b09 Added IDispatcherImplWithExplicitBackgroundProcessing to EpollDispatcherImpl. (#21152) 5 jam lalu
tests 7953595956 Fix System.InvalidCastException in PageNavigationHost (#21144) 1 hari lalu
.editorconfig 0fb64d65cc Enable warnings as errors (#20504) 2 bulan lalu
.gitattributes cd2b7530f5 Initial commit 12 tahun lalu
.gitignore b9995d179d Add .serena to .gitignore 1 bulan lalu
.gitmodules a94621fd79 Use Numerge package (#20892) 4 minggu lalu
Avalonia.Desktop.slnf 853975ca7c Switch solution to SLNX (#21057) 1 Minggu lalu
Avalonia.slnx 853975ca7c Switch solution to SLNX (#21057) 1 Minggu lalu
Avalonia.slnx.DotSettings 853975ca7c Switch solution to SLNX (#21057) 1 Minggu lalu
Avalonia.v3.ncrunchsolution 70f3bef705 Add CompiledBinding.Create factory methods from LINQ expressions (#20443) 2 bulan lalu
CODE_OF_CONDUCT.md 4af92dcce2 Update CODE_OF_CONDUCT.md (#20417) 3 bulan lalu
CONTRIBUTING.md 246cbfc566 Remove Direct2D1 (#20132) 4 bulan lalu
Directory.Build.props 0fb64d65cc Enable warnings as errors (#20504) 2 bulan lalu
Directory.Build.targets e9519e2719 Fix NET8 build 3 tahun lalu
Directory.Packages.props cda3445d43 Bump Tmds.DBus.Protocol (#21122) 2 hari lalu
NOTICE.md ea7e9a7aed Onboard onto Central Package Management (#20704) 1 bulan lalu
NuGet.Config ea7e9a7aed Onboard onto Central Package Management (#20704) 1 bulan lalu
SECURITY.md 775d39d9ae Revise security policy and add vulnerability reporting (#21029) 1 Minggu lalu
azure-pipelines-integrationtests.yml c9e210eb70 Update to xunit.v3 (#20331) 3 bulan lalu
azure-pipelines.yml fb0f3848f9 Update to .NET 10 (#19869) 4 bulan lalu
build-native.sh 1986de1bf8 add some key mappings for osx 6 tahun lalu
build.cmd 240b644650 Next try 3 tahun lalu
build.ps1 240b644650 Next try 3 tahun lalu
build.sh 240b644650 Next try 3 tahun lalu
dirs.proj ea7e9a7aed Onboard onto Central Package Management (#20704) 1 bulan lalu
global.json 8498a51f07 Update .NET SDK to 10.0.201 (#20912) 3 minggu lalu
licence.md 5837d8c228 Removing DNF references. (#15500) 1 tahun lalu
readme.md 5ab7d5b70b Update readme.md 1 Minggu lalu

readme.md

Hero

Build Status License NuGet downloads

📖 About

Avalonia is a cross-platform UI framework for dotnet, providing a flexible styling system and supporting a wide range of platforms such as Windows, macOS, Linux, iOS, Android and WebAssembly. Avalonia is mature and production ready and is used by companies, including Schneider Electric, Unity, JetBrains and GitHub.

Considered by many to be the spiritual successor to WPF, Avalonia UI provides a familiar, modern development experience for XAML developers creating cross-platform applications. While Avalonia UI is similar to WPF, it isn't a 1:1 copy, and you'll find plenty of improvements.

For those seeking a cross-platform WPF, we have created Avalonia XPF, enabling WPF applications to run on macOS and Linux with little to no code changes. Avalonia XPF is a commercial product and is licensed per-app, per-platform.

Blog

To see the latest announcements and read about the state of Avalonia, check out the Avalonia UI Blog.

Sponsorship

Avalonia development is supported by the generous sponsorship of Devolutions.

Devolutions Logo


🚀 Getting Started

See our Get Started guide to begin developing apps with Avalonia UI.

Visual Studio Code

The Avalonia for Code extension gives you everything you need to build cross-platform .NET apps. XAML previewing, code completion, diagnostics, and code navigation, all inside the world's most popular editor. It's the fastest way to get started with Avalonia.

Visual Studio 2022 & 2026

The Avalonia Visual Studio Extension contains project and control templates, a live XAML previewer, code completion, and full diagnostics directly into Visual Studio.

JetBrains Rider

JetBrains Rider supports for Avalonia.

Code completion, inspections and refactorings are supported out of the box. To enable previewing XAML, you will require a 3rd party, community-maintained extension: https://plugins.jetbrains.com/plugins/dev/14839 to plugin repositories and install AvaloniaRider plugin.

Avalonia Packages

Avalonia is delivered via NuGet package manager. You can find the packages here: https://www.nuget.org/packages/Avalonia/

Use these commands in the Package Manager console to install Avalonia manually:

Install-Package Avalonia
Install-Package Avalonia.Desktop

Bleeding Edge Builds

We also have a nightly build which tracks the current state of master. Although these packages are less stable than the release on NuGet.org, you'll get all the latest features and bugfixes right away and many of our users actually prefer this feed!


Learning

Documentation

Documentation can be found at https://docs.avaloniaui.net.

Tutorials

We also have a tutorial over there for newcomers.

Samples

We have a range of samples to help you get started.

Breaking Changes

You can also see what breaking changes between Avalonia 11 and Avalonia 12.


Building and Using

See the build instructions here.


Contributing

This project exists thanks to all the people who contribute. Please read the contribution guidelines before submitting a pull request.

Code of Conduct

This project has adopted the code of conduct defined by the Contributor Covenant to clarify expected behavior in our community. For more information, see the Code of Conduct.


Security

If you discover a security vulnerability in any of our SDKs, tools, services, or repositories, please help us keep the community safe by reporting it responsibly.

You can report security vulnerabilities by emailing [email protected].

Please avoid disclosing the issue publicly until we have had a reasonable amount of time to investigate and release a patch or mitigation. We review all legitimate reports and will work with you to quickly resolve the issue.

Please note that Avalonia does not operate a bug bounty programme.


Licence

Avalonia is licenced under the MIT licence.

XPF - cross-platform WPF

Unleash the full potential of your existing WPF apps with our cross-platform UI framework, enabling WPF apps to run on macOS and Linux without requiring expensive and risky rewrites. GH_Banner