• Stars
    star
    570
  • Rank 78,245 (Top 2 %)
  • Language
    C#
  • Created over 2 years ago
  • Updated 5 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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

Avalonia Logo Samples

๐Ÿ—ฏ Get in touch with us

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

chat Join%20Chat discord join%20chat 46BC99

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

๐Ÿฃ Difficulties

Each sample is tagged with itโ€™s 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.

โœ๏ธ Samples

๐Ÿ’ก MVVM-Samples

Sample Difficulty Buzz-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

Validation Sample

๐Ÿฅ Easy

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

โœ’๏ธ Drawing-Samples

Sample Difficulty Buzz-Words

BattleCity Game Sample

๐Ÿ” Normal

Game, Canvas, Game Loop, MVVM

๐ŸŽž๏ธ DataTemplate-Samples

Sample Difficulty Buzz-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

๐Ÿ—บ๏ธ Routing / Navigation-Samples

Sample Difficulty Buzz-Words

Basic ViewLocator Sample

๐Ÿ” Normal

ViewLocator, Routing, Wizard, Navigation, Page, MVVM

๐Ÿ› ๏ธ Custom Controls Samples

Sample Difficulty Buzz-Words

RatingControl Sample

๐Ÿ” Normal

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

๐Ÿช› 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 the 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, that something is unclear or missing, you can update this sample and file a pull request. Also spelling mistakes or wrong wording can be changed and a pull request can be send.

โ—
If you change the difficulty or the buzz-words, remember to also update the main page.

Adding a new sample

  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 to use the template which you can find here:

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

    2. Markdown-Template: If you donโ€™t like option a), you can use also the Markdown-template.

More Repositories

1

Avalonia

Develop Desktop, Embedded, Mobile and WebAssembly apps with C# and XAML. The most popular .NET UI client technology
C#
25,320
star
2

AvaloniaEdit

Avalonia-based text editor (port of AvalonEdit)
C#
716
star
3

Citrus.Avalonia

Modern styles for Avalonia controls.
C#
542
star
4

avalonia-dotnet-templates

Avalonia Templates for `dotnet new`
C#
478
star
5

AvaloniaVS

Visual Studio Extension for Avalonia
C#
414
star
6

Live.Avalonia

In-app live reload for Avalonia applications.
C#
402
star
7

Avalonia.Xaml.Behaviors

Port of Windows UWP Xaml Behaviors for Avalonia Xaml.
C#
376
star
8

Avalonia.Markup.Declarative

Provides helpers for declarative ui in C#
C#
322
star
9

Avalonia.Controls.TreeDataGrid

A combined TreeView/DataGrid for Avalonia.
C#
268
star
10

Avalonia.Labs

Experimental Controls for Avalonia
C#
167
star
11

XamlControlsGallery

C#
159
star
12

AvaloniaMauiHybrid

Brings templated controls, pixel perfect rendering, animations, styling and composition to Maui
C#
152
star
13

AvaloniaUI.QuickGuides

C#
136
star
14

Avalonia.HtmlRenderer

Avalonia front-end for the HtmlRenderer project.
C#
112
star
15

AvaloniaVSCode

Visual Studio Code Extension for Avalonia UI
TypeScript
97
star
16

Avalonia.GIF

GIF image renderer and player for Avalonia UI Framework
C#
91
star
17

Avalonia.NameGenerator

Generates x:Name refs to Avalonia XAML controls.
C#
85
star
18

AvaloniaAutoGrid

C#
78
star
19

Avalonia.Essentials

Essential cross platform APIs for your mobile apps.
C#
65
star
20

Solitaire

C#
64
star
21

Wordle-onia

C#
60
star
22

ControlCatalogStandalone

C#
57
star
23

XamlPlayground

Avalonia Xaml Playground
C#
56
star
24

avalonia-docs

JavaScript
55
star
25

Documentation

AvaloniaUI documentation page source code
53
star
26

Avalonia.VSCodeExtension

This is an experimental VSCode extension. Don't expect it to work.
C#
50
star
27

Avalonia.MusicStore

C#
47
star
28

Avalonia-VSCode-Extension

An awesome extension for Visual Studio Code.
44
star
29

Avalonia.Lottie

Lottie/Bodymovin renderer and player for Avalonia UI Framework.
C#
29
star
30

Avalonia.AxamlAutoCompletion

C#
15
star
31

skiabuild

Makefile
6
star
32

MusicStoreTutorial

C#
6
star
33

Avalonia.TagsAndIdentation

TypeScript
5
star
34

NodeEditor

CSS
4
star
35

Avalonia.WebCam

Experimental cross-platform webcam interface for Avalonia UI Framework.
C#
3
star
36

Avalonia.Toolkit

2
star
37

.github

2
star