GitHub - AvaloniaUI/Avalonia.Samples: Avalonia.Samples aims to provide some minimal samples focusing on a particular issue at a time. This should help getting new users started. (original) (raw)
Welcome to Avalonia.Samples. This is a collection of minimal samples, which should make it easy for everyone to get started with Avalonia. Each sample is focusing on only one aspect of Avalonia.
π― Get in touch with us
If you have feedback, questions or suggestions, feel free to contact us via:
Or file a new bug-report or feature request in the Issues-section.
π Organization of the Samples
Every sample can be found in its own subfolder and can run without any reference to another sample. Nevertheless, we have a *.slnx-file which has all projects in one solution, if you are looking for a complete collection of samples.
βΉοΈ
We migrated to the newer *.slnx-File format, which should be supported from all major IDEs. If it doesnβt work for you, please use the project-files inside the subdirectories.
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.
π£ Difficulties
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 C#, X(A)ML and your IDE is mandatory.
π₯
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.
Todo-List, Cross-Platform, WebAssembly (WASM), SQLite, Service Pattern, Dependency Injection, MVVM Pattern, IndexedDB, Unit Testing, Headless Testing, Persistent Storage, Controls-Library
πͺ Contribution
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.
βΉοΈ
Before you start, make sure you have read the Code of Conduct.
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 Contributor Covenant Code of Conduct.
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.
Pull Requests
βΉοΈ
Pull requests may be discussed and probably not every pull request will be merged in the end. If you are not sure, please π― Get in touch with us first. Anyway, every contribution is welcome.
Fixing an existing sample
If you find that in an existing sample 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.
β
If you change the difficulty or the buzz-words, remember to also update the main page.
Adding a new sample
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: