dotnet/maui-samples is a collection of sample applications demonstrating .NET Multi-Platform App UI, a cross-platform framework for building mobile and desktop applications with C# and XAML that run on Android, iOS, iPadOS, macOS, and Windows from a single codebase.
The samples address the challenge of learning how to build multi-platform applications by providing working code examples across different complexity levels and use cases. The repository is organized by framework version, with the current stable release in the 10.0 folder and preview features in 11.0, allowing developers to target the version they are using. Samples range from basic building blocks like a calculator demonstrating grid layout techniques to complete applications like a point-of-sale system that adapts to both desktop and mobile form factors while leveraging native platform features. The repository also includes migration guides for developers transitioning from Xamarin.Forms to .NET MAUI, and samples showing integration with modern .NET libraries such as Microsoft.Extensions.AI for building chat applications with language model capabilities.
Developers should use these samples when learning .NET MAUI or when building applications that need to run across multiple platforms with native look and feel. The samples are particularly valuable for understanding responsive UI patterns that adapt between desktop and mobile layouts, navigation patterns in different scenarios, and how to integrate platform-specific features. The repository serves as the official sample collection and is complemented by a samples browser for discovering examples by feature or use case.
The project maintains samples aligned with active framework releases, marking deprecated versions clearly and providing centralized package version management across samples to ensure consistency. The repository includes samples specifically designed for beginners following the official .NET MAUI for Beginners series, alongside more advanced examples demonstrating real-world application patterns.