If you have feedback, questions or suggestions feel free to contact us via:
Join%20Chat
Issues-section.
Every sample can be found in its own sub-folder and can run without any reference to another sample. Nevertheless we have a *.sln-file which has all projects in one solution, if you are looking for a complete collection of samples.
You can find the list of samples below. The samples are structured in different categories and difficulties. For better search results, each sample is also tagged with some buzz-words.
In every sample folder you will find a README-file, which describes the sample in detail and, if applicable, has links to further information and documentation.
Each sample is tagged with its difficulty. The degree of difficulty describes how much base-knowledge a user should have.
| 🔘 | Difficulty | Degree of knowledge |
|---|---|---|
🐣 |
Beginner |
A Beginner must not have any knowledge of Avalonia. Nevertheless some basic knowledge of |
🐥 |
Easy |
Some very basic knowledge of Avalonia is needed. |
🐔 |
Normal |
The user is somewhat experienced with Avalonia. |
🐉 |
Hard |
These samples are focusing on non-standard tasks, which most users will not need to know. |
| Sample | Difficulty | Buzz-Words |
|---|---|---|
🐣 Beginner |
MVVM, Model-View-ViewModel, ReactiveUI, INotifyPropertyChanged, XAML, Binding |
|
🐣 Beginner |
Command, ICommand, CommandParameter, MVVM, ReactiveCommand, async-await |
|
🐥 Easy |
Converter, Binding, MultiBinding, IValueConverter, IMultiValueConverter, MVVM, FuncValueConverter |
|
🐥 Easy |
MVVM, Data-Validation, Exception, Error, Error-Message, Binding |
| Sample | Difficulty | Buzz-Words |
|---|---|---|
🐔 Normal |
Game, Canvas, Game Loop, MVVM |
|
🐔 Normal |
Graphics, MVVM |
| Sample | Difficulty | Buzz-Words |
|---|---|---|
🐔 Normal |
DataTemplate, ToString, StringFormat, MVVM, ItemTemplate, ContentTemplate |
|
🐔 Normal |
FuncDataTemplate, DataTemplate, C#, Binding from code |
|
🐔 Normal |
IDataTemplate, DataTemplate, DataTemplateSelector |
| Sample | Difficulty | Buzz-Words |
|---|---|---|
🐔 Normal |
ViewLocator, Routing, Wizard, Navigation, Page, MVVM |
| Sample | Difficulty | Buzz-Words |
|---|---|---|
🐔 Normal |
Control, TemplatedControl, custom Control, reusable Control, AvaloniaProperty, StyledProperty, DirectProperty, ReadonlyProperty, Style, ControlTheme |
|
🐔 Normal |
Custom Control, Render, Hit-Testing, Custom Animations |
| Sample | Difficulty | Buzz-Words |
|---|---|---|
🐔 Normal |
MVVM, Dialog, FileDialogs, TopLevel, Clipboard |
|
🐔 Normal |
MVVM, Dialog, FileDialogs, TopLevel, Clipboard, DialogManager, CommunityToolkit.Mvvm |
| Sample | Difficulty | Buzz-Words |
|---|---|---|
🐔 Normal |
XUnit, Headless, Automation, UI Testing |
|
🐔 Normal |
NUnit, Headless, Automation, UI Testing |
|
🐉 Hard |
XUnit, Appium, WinAppDriver, Automation, UI Testing |
Is anything missing? Have you found an error? Have you found an outdated sample? Or do you have a great idea?
Fantastic! Your contribution is welcome.
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 Issues and Feature Requests
If you file a new issue or feature request, please fill in the templates available. If you found an issue in an existing sample, please link the sample and, if possible, point us to what is wrong.
If you find that in an existing sample, that something is unclear or missing, you can update the sample and file a pull request. Spelling mistakes or wrong wording can also be changed in a pull request.
Add a new Project to the Solution: src ► Avalonia.Samples ► Avalonia.Samples.sln
In the root directory of the new sample add a README-file. We highly suggest using a template which you can find here:
AsciiDoc-Template: If you want to provide richer content, we suggest using the Markdown-Template: If you prefer not to use AsciiDoc, you can instead use the Markdown-template.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。