AvaloniaUI/Avalonia.Samples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

If you have feedback, questions or suggestions feel free to contact us via:

chatJoin%20Chatdiscord join%20chat 46BC99

Or file a new bug-report or feature request in the 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.

πŸ”˜DifficultyDegree 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.

SampleDifficultyBuzz-Words

Basic MVVM Sample

🐣 Beginner

MVVM, Model-View-ViewModel, ReactiveUI, INotifyPropertyChanged, XAML, Binding

Commands Sample

🐣 Beginner

Command, ICommand, CommandParameter, MVVM, ReactiveCommand, async-await

ValueConverter Sample

πŸ₯ Easy

Converter, Binding, MultiBinding, IValueConverter, IMultiValueConverter, MVVM, FuncValueConverter

Validation Sample

πŸ₯ Easy

MVVM, Data-Validation, Exception, Error, Error-Message, Binding

SampleDifficultyBuzz-Words

BattleCity Game Sample

πŸ” Normal

Game, Canvas, Game Loop, MVVM

Rect Painter Sample

πŸ” Normal

Graphics, MVVM

SampleDifficultyBuzz-Words

Basic DataTemplate Sample

πŸ” Normal

DataTemplate, ToString, StringFormat, MVVM, ItemTemplate, ContentTemplate

FuncDataTemplate Sample

πŸ” Normal

FuncDataTemplate, DataTemplate, C#, Binding from code

Implementing IDataTemplate Sample

πŸ” Normal

IDataTemplate, DataTemplate, DataTemplateSelector

SampleDifficultyBuzz-Words

Basic ViewLocator Sample

πŸ” Normal

ViewLocator, Routing, Wizard, Navigation, Page, MVVM

SampleDifficultyBuzz-Words

RatingControl Sample

πŸ” Normal

Control, TemplatedControl, custom Control, reusable Control, AvaloniaProperty, StyledProperty, DirectProperty, ReadonlyProperty, Style, ControlTheme

SnowflakesControl Sample

πŸ” Normal

Custom Control, Render, Hit-Testing, Custom Animations

SampleDifficultyBuzz-Words

Mvvm Dialog Sample

πŸ” Normal

MVVM, Dialog, FileDialogs, TopLevel, Clipboard

Dialog Manager Sample

πŸ” Normal

MVVM, Dialog, FileDialogs, TopLevel, Clipboard, DialogManager, CommunityToolkit.Mvvm

SampleDifficultyBuzz-Words

Testing with Headless XUnit

πŸ” Normal

XUnit, Headless, Automation, UI Testing

Testing with Headless NUnit

πŸ” Normal

NUnit, Headless, Automation, UI Testing

Testing with Appium

πŸ‰ Hard

XUnit, Appium, WinAppDriver, Automation, UI Testing

SampleDifficultyBuzz-Words

Simple ToDo-List

πŸ₯ Easy

ToDo-List, Complete App, MVVM, CommunityToolkit.MVVM, Source Generator, Styles, Commands

Music Store App

πŸ₯ Easy

Music Store, Complete App, CommunityToolkit.MVVM, Mvvm.Messaging, Styles, ObservableProperty, Commands, iTunes Api

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.

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.

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

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.

❗
If you change the difficulty or the buzz-words, remember to also update the main page.
  1. Add a new Project to the Solution: src β–Ί Avalonia.Samples β–Ί Avalonia.Samples.sln

  2. In the root directory of the new sample add a README-file. We highly suggest using a template which you can find here:

    1. AsciiDoc-Template: If you want to provide richer content, we suggest using the ascii-doc-template.

    2. Markdown-Template: If you prefer not to use AsciiDoc, you can instead use the Markdown-template.

About

Avalonia.Samples aims to provide some minimal samples focusing on a particular issue at a time. This should help getting new users started.

Topics

Resources

License

Stars

Watchers

Forks

Languages