.NET MAUI Overview

Build native cross-platform apps for iOS, Android, macOS, and Windows with a single C# codebase.

On this page

What is .NET MAUI?

.NET Multi-platform App UI (.NET MAUI) is an open-source framework for creating native cross-platform applications for iOS, Android, macOS, and Windows, using C# and XAML.

It's the evolution of Xamarin.Forms, providing a more modern and efficient way to build desktop and mobile applications with .NET. With .NET MAUI, you can develop applications that run on multiple platforms from a single shared codebase, significantly reducing development time and effort.

Key Benefits

Single Project Structure

Manage all your platform-specific code, resources, and project settings in a single .NET project.

Native Performance

Leverage native UI controls on each platform, ensuring an authentic look, feel, and performance for your apps.

Modern UI Development

Use XAML for declarative UI design or code-behind C# for dynamic UI generation. Supports MVVM pattern.

Extensible Architecture

Easily extend MAUI with custom renderers, handlers, and platform-specific APIs.

Rich Ecosystem

Benefit from the vast .NET ecosystem, including NuGet packages, C# features, and tooling.

Cross-Platform Development

Target iOS, Android, macOS (Mac Catalyst), and Windows (WinUI 3) from one codebase.

Architecture

.NET MAUI is built on top of .NET and leverages the native UI toolkits of each target platform. The core of MAUI consists of:

This architecture ensures that your application looks and feels native on each platform while maintaining a high degree of code reuse.

Core Concepts

Tip: For optimal cross-platform UI consistency, consider using responsive layouts like Grid and FlexLayout.

Getting Started with MAUI

To start building applications with .NET MAUI, you'll need the latest version of Visual Studio or the .NET CLI with the MAUI workload installed.

Here's a simplified overview of the steps:

  1. Install .NET MAUI: Ensure you have the .NET SDK and the MAUI workload installed.
  2. Create a New Project: Use Visual Studio or the command line to create a new .NET MAUI project.
  3. Design Your UI: Define your user interface using XAML or C#.
  4. Implement Logic: Write your application logic in C#, often using the MVVM pattern.
  5. Deploy: Build and deploy your app to your target platforms.

For detailed installation and setup instructions, please refer to the Getting Started guide.

Explore the UI Fundamentals to learn how to build rich and responsive user interfaces.