Coder Social home page Coder Social logo

awesomeyuer / avalonia.samples Goto Github PK

View Code? Open in Web Editor NEW

This project forked from avaloniaui/avalonia.samples

0.0 0.0 0.0 3.67 MB

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

Home Page: https://www.avaloniaui.net

C# 100.00%

avalonia.samples's Introduction

Avalonia 阿瓦隆尼亚

Linux

# host:~/Avalonia.Samples/src/Avalonia.Samples$
dotnet build

dotnet run --project DataTemplates/BasicDataTemplateSample/BasicDataTemplateSample.csproj
dotnet run --project DataTemplates/FuncDataTemplateSample/FuncDataTemplateSample.csproj
dotnet run --project DataTemplates/FuncDataTemplateSample/FuncDataTemplateSample.csproj
dotnet run --project DataTemplates/IDataTemplateSample/IDataTemplateSample.csproj
dotnet run --project Drawing/BattleCity/BattleCity.csproj
dotnet run --project MVVM/BasicMvvmSample/BasicMvvmSample.csproj
dotnet run --project MVVM/CommandSample/CommandSample.csproj
dotnet run --project MVVM/ValidationSample/ValidationSample.csproj
dotnet run --project MVVM/ValueConversionSample/ValueConversionSample.csproj
dotnet run --project Routing/BasicViewLocatorSample/BasicViewLocatorSample.csproj

Avalonia Logo Samples

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:

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

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

avalonia.samples's People

Contributors

begleysm avatar kekekeks avatar maxkatz6 avatar timunie avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.