Develop Desktop, Embedded, Mobile and WebAssembly apps with C# and XAML. The most popular .NET Foundation community project.
Перейти к файлу
Max Katz 0c0d4497ef
Browser StaticWebAssets sdk support (#14225)
* Property support StaticWebAssets SDK when it's available

* Fix browser issue with dispatcher used before initialization

* Use RequestAnimationFrame instead of WebEmbeddableControlRoot hack

* Always include both types of assets by default, as I couldn't find a reliable way to detect project capabilities properly

* Remove "WasmRuntimeAssetsLocation" override, instead let users use default value set by .NET SDK

* Revert "Fix browser issue with dispatcher used before initialization"

This reverts commit fc43c7e3d5.

* Add AvaloniaAllowWebGl2 prop

* What
2024-02-11 13:51:09 +00:00
.github Housekeeping/improve issue templates (#13074) 2023-09-29 18:12:58 +00:00
.ncrunch Binding System refactor (#13970) 2024-01-29 08:08:26 +00:00
.nuke Implement helper OutputApiDiff target (#13818) 2023-12-22 09:44:07 +00:00
Documentation Update build.md 2023-07-05 15:37:50 -04:00
api Remove Console support in DevTools (#13920) 2023-12-13 00:32:17 +00:00
build Fix some new error/warnings from .NET 8 2024-02-07 23:35:00 -08:00
external update tmds submodule (#14380) 2024-01-28 22:27:25 +03:00
native/Avalonia.Native fix macos crash at startup by not parsing all app arguments into uris. (#14494) 2024-02-05 13:11:28 -08:00
nukebuild Adjust ApiDiffHelper 2024-02-07 22:24:10 -08:00
packages/Avalonia feat: Allow Name Generator to disable attach to DevTools (#14425) 2024-01-31 22:47:01 +00:00
samples Browser StaticWebAssets sdk support (#14225) 2024-02-11 13:51:09 +00:00
scripts update replace scripts. 2020-05-11 20:51:10 -03:00
src Browser StaticWebAssets sdk support (#14225) 2024-02-11 13:51:09 +00:00
tests Discard additional lines upon inserting when AcceptsReturn=false (#14173) 2024-02-08 16:48:19 -08:00
.editorconfig XAML warnings/diagnostics support (#13447) 2023-11-17 07:51:08 +00:00
.gitattributes Initial commit 2013-12-05 21:16:06 +01:00
.gitignore Browser StaticWebAssets sdk support (#14225) 2024-02-11 13:51:09 +00:00
.gitmodules Use Tmds.DBus.SourceGenerator fork (#14362) 2024-01-26 23:15:51 +08:00
Avalonia.Desktop.slnf Use Tmds.DBus.SourceGenerator fork (#14362) 2024-01-26 23:15:51 +08:00
Avalonia.sln Use Tmds.DBus.SourceGenerator fork (#14362) 2024-01-26 23:15:51 +08:00
Avalonia.sln.DotSettings DotSettings: enable XAML highlighting 2021-09-07 23:53:43 +07:00
Avalonia.v3.ncrunchsolution Fix ncrunch. 2020-11-02 11:45:11 +01:00
CODE_OF_CONDUCT.md Fixed CoC contact method 2020-04-01 01:02:28 +03:00
CONTRIBUTING.md Update CONTRIBUTING.md (#12714) 2023-09-13 14:20:05 +00:00
Directory.Build.props Remove "netcoreapp2.0" target from the Avalonia. Make previewer use netstandard2.0 (#14268) 2024-01-19 07:07:57 +00:00
Directory.Build.targets Fix NET8 build 2023-04-19 19:58:34 -07:00
NOTICE.md Changes after review 2023-01-08 00:17:53 -05:00
NuGet.Config remove legacy nuget feed no longer reachable. 2023-08-16 16:38:35 +01:00
Settings.StyleCop Stylecop fixes. 2014-12-04 19:55:49 +01:00
azure-pipelines-integrationtests.yml Use single .NET SDK version in pipelines (#13719) 2023-11-24 05:55:33 +00:00
azure-pipelines.yml AppleTV support + improvements for iOS backend (#14196) 2024-01-21 04:06:05 -05:00
build-native.sh add some key mappings for osx 2019-07-09 11:35:23 -07:00
build.cmd Next try 2022-10-05 16:01:29 +02:00
build.ps1 Next try 2022-10-05 16:01:29 +02:00
build.sh Next try 2022-10-05 16:01:29 +02:00
dirs.proj Make Avalonia.Win32.Interoperability build again on CI 2023-05-22 22:10:12 -04:00
global.json Use single .NET SDK version in pipelines (#13719) 2023-11-24 05:55:33 +00:00
licence.md Revert "Update licence.md" 2021-02-08 20:29:15 +00:00
readme.md Update readme.md (#14168) 2024-01-10 13:29:30 -08:00

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. team@avaloniaui.net

.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