Repolode
dotnet

dotnet/maui-samples

A collection of official sample apps built with .NET MAUI, covering AI chat, navigation, layouts and native platform features.

Stars
3,659
Forks
1,485
Open issues
96
Last commit
2 months ago

What is it?

This repository hosts official sample projects for .NET Multi-platform App UI (.NET MAUI), Microsoft's framework for building Android, iOS, macOS and Windows apps from a single C# and XAML codebase. Samples are organized by .NET MAUI version, with the 10.0 folder holding the current stable set and the 11.0 folder holding preview samples.

The collection includes small focused examples such as a minimal chat client built on Microsoft.Extensions.AI and a version that adds LLM tool function calling. Larger apps such as a Point of Sale application, a responsive Weather app, a calculator using Grid span features, and several navigation scenarios show how to adapt one UI to desktop and mobile devices. A migration guide for moving from Xamarin.Forms is also included.

Key features

  • 01Official samples organized by .NET MAUI version (10.0 stable, 11.0 preview)
  • 02AI samples using Microsoft.Extensions.AI for chat and tool calling
  • 03Responsive layouts that adapt to desktop and mobile
  • 04Examples of navigation patterns and native platform integration
  • 05Migration guides from Xamarin.Forms

Use cases

  • Learning how to build a cross-platform C# and XAML app
  • Adding LLM chat with tool calling to a .NET MAUI app
  • Studying responsive layouts and navigation in .NET MAUI
  • Migrating an existing Xamarin.Forms app to .NET MAUI

Quick start

  1. 1

    Clone the repository

    git clone https://github.com/dotnet/maui-samples.git
  2. 2

    Open a sample from the 10.0 folder (current stable) in Visual Studio or your IDE and run it on your target platform

Things to know

  • Samples target .NET MAUI 9.0 and newer; the 9.0 folder is deprecated and out of support.
  • The 11.0 folder contains preview samples that may change.

In collections

Topics

FAQ

What is maui-samples?
A collection of official sample apps built with .NET MAUI, covering AI chat, navigation, layouts and native platform features. This repository hosts official sample projects for .NET Multi-platform App UI (.NET MAUI), Microsoft's framework for building Android, iOS, macOS and Windows apps from a single C# and XAML codebase. Samples are organized by .NET MAUI version, with the 10.0 folder holding the current stable set and the 11.0 folder holding preview samples.
Is maui-samples free to use? What license does it have?
maui-samples is open source under the MIT license. Check the license terms before using it in commercial products.
Is maui-samples still maintained?
Updated within 6 months. The last commit to maui-samples was on Sep 1, 2026.
What can I use maui-samples for?
Learning how to build a cross-platform C# and XAML app Adding LLM chat with tool calling to a .NET MAUI app Studying responsive layouts and navigation in .NET MAUI Migrating an existing Xamarin.Forms app to .NET MAUI
How do I install maui-samples?
Clone the repository: git clone https://github.com/dotnet/maui-samples.git Open a sample from the 10.0 folder (current stable) in Visual Studio or your IDE and run it on your target platform
Where can I get maui-samples?
The source code and installation instructions are on GitHub: https://github.com/dotnet/maui-samples

Summary generated by AI from the project's README. GitHub stats refresh daily.

Related projects