跨平台的 .NET UI框架

Damon c102aadd97 Update SkiaSharp to 2.88.6 to fix a critical security vulnerability (#13109) 2 years ago
.github 3430e6dc68 Housekeeping/improve issue templates (#13074) 2 years ago
.ncrunch c6ab46178c Update ncrunch configuration. 2 years ago
.nuke 65e29787dd Parameters fixes 2 years ago
Documentation 75e60d9c2d Update build.md 2 years ago
api 081803b292 Add api change suppression for ImportCompleted 2 years ago
build c102aadd97 Update SkiaSharp to 2.88.6 to fix a critical security vulnerability (#13109) 2 years ago
native 965276d616 Disallow entering fullscreen when showing window. (#12865) 2 years ago
nukebuild a7725b0ca6 Use a regex to detect a release branch. (#13106) 2 years ago
packages ab3690c8e4 Pass nowarn to external MSBuild processes (#12647) 2 years ago
samples 631a0eda45 Make ColorPicker button content customizable. (#13073) 2 years ago
scripts 4dc87d6cbc update replace scripts. 5 years ago
src c102aadd97 Update SkiaSharp to 2.88.6 to fix a critical security vulnerability (#13109) 2 years ago
tests 059c775bba Fix popup tests randomly failing after logical scrollable tests (#13098) 2 years ago
.editorconfig ea779ac9ad feat: Enable Rule CA1854 2 years ago
.gitattributes cd2b7530f5 Initial commit 12 years ago
.gitignore 117631d0ef Update .gitignore 2 years ago
.gitmodules 240b644650 Next try 3 years ago
Avalonia.Desktop.slnf 8680c612fd OSX rendering refactoring 2 years ago
Avalonia.sln af254d50e4 perf: Micro optimization EndsWith using (#13084) 2 years ago
Avalonia.sln.DotSettings fcece1a215 DotSettings: enable XAML highlighting 4 years ago
Avalonia.v3.ncrunchsolution 1cc569472e Fix ncrunch. 5 years ago
CODE_OF_CONDUCT.md 614941c430 Fixed CoC contact method 5 years ago
CONTRIBUTING.md 8d3f9043a8 Update CONTRIBUTING.md (#12714) 2 years ago
Directory.Build.props 876fa08812 move to a consistent langversion of 11 2 years ago
Directory.Build.targets e9519e2719 Fix NET8 build 2 years ago
NOTICE.md a78b0edd42 Changes after review 2 years ago
NuGet.Config eafaa6e584 remove legacy nuget feed no longer reachable. 2 years ago
Settings.StyleCop a833a5e883 Stylecop fixes. 11 years ago
azure-pipelines-integrationtests.yml 989e45428a always kill testmanagerd 2 years ago
azure-pipelines.yml 3687cb9ecc Samsung Tizen (#12151) 2 years ago
build-native.sh 1986de1bf8 add some key mappings for osx 6 years ago
build.cmd 240b644650 Next try 3 years ago
build.ps1 240b644650 Next try 3 years ago
build.sh 240b644650 Next try 3 years ago
dirs.proj 691ff9f33a Make Avalonia.Win32.Interoperability build again on CI 2 years ago
global.json e049313e7a Microsoft.Build.Traversal 3.2.0 2 years ago
licence.md 2ab5f8b893 Revert "Update licence.md" 4 years ago
readme.md b8fad4af84 Replace old Roadmap link with link to Blog (#13069) 2 years ago

readme.md

Star our repo to show support Header

Telegram Gitter Discord Build Status Backers on Open Collective Sponsors on Open Collective GitHub Sponsors License
NuGet downloads Size

📖 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.

Breaking Changes

You can also see what breaking changes we have planned and what our past breaking changes have been.

Awesome Avalonia

Awesome Avalonia is community-curated list of awesome Avalonia UI tools, libraries, projects and resources. Go and see what people are building with Avalonia!

🚀 Getting Started

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

Visual Studio

The Avalonia Visual Studio Extension contains project and control templates that will help you get started, or you can use the .NET Core CLI. For a starter guide see our documentation.

JetBrains Rider

JetBrains Rider now has official support for Avalonia.

Code completion, inspections and refactorings are supported out of the box, for XAML previewer add 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

Showcase

Showcase_Banner

See what others have built with Avalonia UI on our Showcase. We welcome submissions!

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.

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 .NET Foundation Code of Conduct.

Licence

Avalonia is licenced under the MIT licence.

Donate

Donating to the project is a fantastic way to thank our valued contributors for their hard work. Your donations are shared among our community and awarded for significant contributions.

If you need support see Commercial Support section below.

Donate with BTC or use Open Collective.

BTC: bc1q05wx78qemgy9x6ytl5ljk2xrt00yqargyjm8gx

Backers

Thank you to all our backers! 🙏 [Become a backer]

Sponsors

Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [Become a sponsor]

Commercial Support

We have a range of support plans available for those looking to partner with the creators of Avalonia, enabling access to the best support at every step of the development process.

Please note that donations are not considered payment for commercial support agreements. Please contact us to discuss your needs first. [email protected]

.NET Foundation

This project is supported by the .NET Foundation.

Avalonia XPF

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