Skip to content
项目

关于

.NET Multi-Platform App UI(.NET MAUI)示例

网站与应用开发

这些数字如何统计

实测星标增长

24小时
0
7天
+1
15天
+5
1个月
+6

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

.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 - Previous release samples, preserved unchanged.
11.0/ .NET MAUI 11 (current stable) - Samples for the current release. See getting started and sample navigation.
Upgrading/ Migration guides from Xamarin.Forms to .NET MAUI.

.NET 9 is out of support. Its samples are available in the .NET 9 archive.

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 MAUI Links

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

探索相关项目

加载中…