Voltar ao ranking

xamarin/xamarin-forms-samples

C#docs.microsoft.com/xamarin/xamarin-forms/

Sample apps built using the Xamarin.Forms framework

xamarinxamarin-forms
Crescimento de estrelas
Estrelas
4.3k
Forks
7.1k
Crescimento semanal
Issues
0
2k4k
mai. de 2014mai. de 2018jun. de 2022jul. de 2026
README

Xamarin.Forms code samples

The samples in this repository demonstrate how to use different aspects of Xamarin.Forms to build cross-platform apps for iOS, Android, and the Universal Windows Platform (UWP). Please visit Microsoft code sample browser to download individual samples.

For additional platform support, visit the following forks:

License

See the license file and any additional license information attached to each sample.

Sample submission guidelines

This repository welcomes contributions and suggestions. If you want to create a new sample, you need to work with an employee to help bring the new sample into the repository. Start by raising a GitHub issue in this repository that outlines your proposed sample. Please note that samples in the master branch of this repository shouldn't rely on preview or pre-release NuGet packages.

The Xamarin.Forms samples in the Microsoft samples browser are sourced from this repository. Samples need to comply with the following requirements:

  • Screenshots - a folder called Screenshots that has at least one screen shot of the sample on each platform (preferably a screen shot for every page or every major piece of functionality). For an example of this, see TodoREST.

  • Readme - a README.md file that explains the sample, and contains metadata to help customers find it. For an example of this, see WebServices/TodoREST. The README file should begin with a YAML header (delimited by ---) with the following keys/values:

    • name - must begin with Xamarin.Forms -

      • description - brief description of the sample (< 150 chars) that appears in the sample code browser search

      • page_type - must be the string sample.

      • languages - coding language/s used in the sample, such as: csharp, fsharp, vb, java

      • products: should be xamarin for every sample in this repo

      • urlFragment: although this can be auto-generated, please supply a value that represents the sample's path in this repo, except directory separators are replaced with dashes (-).

      Here is a working example from WebServices/TodoREST README raw view.

      ---
      name: Xamarin.Forms - TodoREST
      description: This sample demonstrates a Todo list application where the data is stored and accessed from a RESTful web service.
      page_type: sample
      languages:
      - csharp
      products:
      - xamarin
      urlFragment: webservices-todorest
      ---
      # Heading 1
      
      rest of README goes here, including screenshot images and requirements/instructions to get it running
      

      NOTE: This must be valid YAML, so some characters in the name or description will require the entire string to be surrounded by " or ' quotes.

  • Buildable solution and .csproj file - the project must build and have the appropriate project scaffolding (solution + .csproj files).

This approach ensures that all samples integrate with the Microsoft sample code browser.

If you have any questions, create an issue or ask on the Xamarin Forums.

Repositórios relacionados
AvaloniaUI/Avalonia

Develop Desktop, Embedded, Mobile and WebAssembly apps with C# and XAML. The future of .NET UI

C#MIT Licensec-sharpxaml
avaloniaui.net
31.2k2.8k
dotnet-architecture/eShopOnContainers

Cross-platform .NET sample microservices and container based application that runs on Linux Windows and macOS. Powered by .NET 7, Docker Containers and Azure Kubernetes Services. Supports Visual Studio, VS for Mac and CLI based environments with Docker CLI, dotnet CLI, VS Code or any other code editor. Moved to https://github.com/dotnet/eShop.

C#dockernetcore
dot.net/architecture
24.3k10.1k
mono/mono

Mono open source ECMA CLI, C# and .NET implementation.

C#Otherxamarinandroid
mono-project.com
11.5k3.8k
unoplatform/uno

Open-source platform for building cross-platform native Mobile, Web, Desktop, and Embedded apps from a single C#/XAML codebase. Work from any IDE/CLI with Hot Reload, Visual Designer, MCPs, and Skills built for modern .NET workflows. 200M+ NuGet downloads.

C#Apache License 2.0unouwp
platform.uno
10k867
reactiveui/refit

The automatic type-safe REST library for .NET Core, Xamarin and .NET. Heavily inspired by Square's Retrofit library, Refit turns your REST API into a live interface.

C#MIT Licensedotnetdotnet-core
reactiveui.github.io/refit/
9.5k788
reactiveui/ReactiveUI

An advanced, composable, functional reactive model-view-viewmodel framework for all .NET platforms that is inspired by functional reactive programming. ReactiveUI allows you to abstract mutable state away from your user interfaces, express the idea around a feature in one readable place and improve the testability of your application.

C#MIT Licensereactiveuixamarin
reactiveui.net
8.5k1.1k
MessagePack-CSharp/MessagePack-CSharp

Extremely Fast MessagePack Serializer for C#(.NET, .NET Core, Unity, Xamarin). / msgpack.org[C#]

C#Othermessagepackunity
6.7k769
NLog/NLog

NLog - Flexible and Structured Logging for various .NET Platforms

C#BSD 3-Clause "New" or "Revised" Licensenloglogging
nlog-project.org
6.5k1.4k
xamarin/Xamarin.Forms

Xamarin.Forms is no longer supported. Migrate your apps to .NET MAUI.

C#Otherxamarinxamarin-forms
aka.ms/xamarin-upgrade
5.5k1.8k
mono/SkiaSharp

SkiaSharp is a cross-platform 2D graphics API for .NET platforms based on Google's Skia Graphics Library. It provides a comprehensive 2D API that can be used across mobile, server and desktop models to render images.

C#MIT Licensexamaringraphics
mono.github.io/SkiaSharp/
5.5k642
beto-rodriguez/LiveCharts2

Simple, flexible, interactive & powerful charts, maps and gauges for .Net, LiveCharts2 can now practically run everywhere Maui, Uno Platform, Blazor-wasm, WPF, WinForms, Xamarin, Avalonia, WinUI, UWP.

C#MIT Licenseunochart
livecharts.dev
4.6k606
stratumauth/app

📱 Two-Factor Authentication (2FA) client for Android + Wear OS

C#GNU General Public License v3.0androidtwo-factor-authentication
stratumauth.com
4.5k275