whatisgithub

What is maui-samples?

dotnet/maui-samples — explained in plain English

Analysis updated 2026-05-18

3,635C#Audience · developerComplexity · 2/5LicenseSetup · moderate

In one sentence

A Microsoft-maintained collection of example apps showing how to build cross-platform mobile and desktop apps with .NET MAUI.

Mindmap

mindmap
  root((maui-samples))
    What it does
      MAUI example apps
      Write once run everywhere
      Reference for docs
    Tech stack
      C sharp
      XAML
      dotnet MAUI
    Use cases
      Point of sale app
      Weather app
      AI chat interface
    Audience
      MAUI beginners
      dotnet developers
      Xamarin migrators

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Learn how to build a cross-platform app for Android, iOS, macOS, and Windows from one codebase.

USE CASE 2

Copy a working point-of-sale, weather, or calculator app as a starting point for your own project.

USE CASE 3

See how to wire a chat interface to a language model inside a .NET MAUI app.

USE CASE 4

Follow migration guides to move an existing Xamarin.Forms app to .NET MAUI.

What is it built with?

C#XAML.NET MAUI

How does it compare?

dotnet/maui-samplesseblague/geographical-adventureskeenanwoodall/deform
Stars3,6353,6373,641
LanguageC#C#C#
Setup difficultymoderatehardeasy
Complexity2/53/52/5
Audiencedevelopergeneraldeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

Requires the .NET MAUI workload and matching .NET SDK version installed.

So what is it?

This repository is a collection of example apps built with .NET MAUI, a framework from Microsoft for building mobile and desktop applications using C# and a layout language called XAML. The key promise of .NET MAUI is that you write your code once and it runs on Android, iOS, macOS, and Windows without needing separate codebases for each platform. The samples here are organized by .NET version. The main folder covers .NET MAUI 10, which is the current stable release. There is also a preview folder for .NET 11 features. An older .NET 9 folder is marked as deprecated since that version is no longer supported. A separate section contains migration guides for developers moving from Xamarin.Forms, an older Microsoft framework that .NET MAUI replaced. The example apps cover a wide range of scenarios. There are AI-focused samples showing how to wire a chat interface to a language model. There are full app examples including a point-of-sale app, a weather app, and a calculator. Navigation samples show different ways to move between screens. A beginners series folder accompanies an official video learning course for people new to .NET MAUI. These samples are maintained by Microsoft's .NET team and serve as the reference material for the official documentation. Each sample demonstrates specific features or patterns a developer might want to replicate in their own app. The repository is licensed under the MIT license and is part of the broader .NET open-source ecosystem on GitHub.

Copy-paste prompts

Prompt 1
Show me a .NET MAUI sample from this repo that demonstrates navigation between screens in C#.
Prompt 2
Walk me through the AI chat interface sample in dotnet/maui-samples and explain how it connects to a language model.
Prompt 3
What changes when migrating a Xamarin.Forms app to .NET MAUI, based on the migration guides in this repo?
Prompt 4
Show me the point-of-sale sample app structure from dotnet/maui-samples.

Frequently asked questions

What is maui-samples?

A Microsoft-maintained collection of example apps showing how to build cross-platform mobile and desktop apps with .NET MAUI.

What language is maui-samples written in?

Mainly C#. The stack also includes C#, XAML, .NET MAUI.

How hard is maui-samples to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is maui-samples for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.