C# MIT

maui-samples

Samples for .NET Multi-Platform App UI (.NET MAUI)

D

dotnet

Dernière activité 1 sept. 2026
dotnet/maui-samples

3,7 k

étoiles

1,5 k

forks

96

issues ouvertes

androiddotnetdotnet-mauidotnetmauihacktoberfestiosmac-catalystmacoswindowswinui3

Ce README est souvent en anglais.

.NET MAUI Samples

Samples built with .NET Multi-platform App UI (.NET MAUI).

.NET MAUI is a cross-platform framework for creating mobile and desktop apps with C# and XAML. Using .NET MAUI, you can develop apps that can run on Android, iOS, iPadOS, macOS, and Windows from a single shared codebase.

Repository Structure

Folder Description
10.0/ .NET MAUI 10 (current stable) - Full set of samples targeting the latest supported release.
11.0/ .NET MAUI 11 (preview) - Samples for features specific to .NET 11. See safe preview testing.
9.0/ Deprecated - .NET 9 is out of support. See the deprecation notice.
Upgrading/ Migration guides from Xamarin.Forms to .NET MAUI.

Official Samples

Official samples can be accessed via the Samples browser.

Sample highlights include:

Name Description
SimpleChatClient (AI) A minimal .NET MAUI sample that wires Microsoft.Extensions.AI into a chat UI.
ChatClientWithTools (AI) A .NET MAUI sample showing how to enhance using an LLM via Microsoft.Extensions.AI with tool function calling. This can improve reliability and repeatability of responses, as well as enable the LLM to answer queries it otherwise could not.
.NET eShop A reference .NET application implementing an e-commerce website using a services-based architecture using Aspire.
Point of Sale This app demonstrates various techniques for building a desktop and mobile application that takes advantage of native platform features, and adapts to a wide range of device needs all from a single codebase.
Weather '21 App This is a .NET MAUI app showcasing responsive UI that adapts to desktop and mobile, and integrates with native platform features.
Calculator App This basic calculator demonstrates using span and spacing features of a Grid layout to achieve a familiar interface.
Navigation Samples Various sample apps that show you how to do navigation in different scenarios.
Beginner's Series Task App Sample Sample code for the .NET MAUI for Beginners Series

Package Versions

The 10.0/ and 11.0/ folders use centralized version management via Directory.Build.props. See PACKAGE-VERSIONS.md for details on how this works.

Community Samples

.NET Foundation

There are many .NET related projects on GitHub.

  • .NET home repo - links to hundreds of .NET projects, from Microsoft and the community.
  • ASP.NET Core home - the best place to start learning about ASP.NET Core.

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 .NET Foundation Code of Conduct.

License

.NET (including the maui-samples repo) is licensed under the MIT license.

Projets similaires

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.

C#androiddesktopdotnet
Ddotnet
23,3 k étoiles2 k

Sample apps for working with .NET MAUI

C#androidblazorblazor-hybrid
Eegvijayanand
211 étoiles29

A full day workshop (.NET MAUI Workshop in a Box) on how to build apps with .NET MAUI for iOS, Android, macOS, and Windows

C#dotnetdotnet-mauidotnetmaui
Ddotnet-presentations
2 k étoiles641