Internative Logo

What Is .NET MAUI? Cross-Platform Apps in C# After Xamarin

What Is .NET MAUI? Cross-Platform Apps in C# After Xamarin

Companies that run on Microsoft technology often have the same problem when they need a mobile app: the business logic, the API clients and the developers are all in C# and .NET, but iOS wants Swift and Android wants Kotlin. .NET MAUI is Microsoft's answer. It lets a .NET team build native apps for Android, iOS, macOS and Windows from one C# project, reusing the language, libraries and tooling they already know.

This article explains what .NET MAUI is, how it relates to Xamarin, how it works, where it fits, when another framework is a better choice, and how it compares with Flutter and React Native.

What is .NET MAUI?

.NET Multi-platform App UI (.NET MAUI) is an open-source, cross-platform framework from Microsoft for building native mobile and desktop apps with C# and XAML. One project targets Android, iOS, macOS (through Mac Catalyst) and Windows (through WinUI 3), and the resulting apps use each platform's own native controls.

.NET MAUI is the successor to Xamarin.Forms. Microsoft announced it in 2020 and released it as part of .NET 6 in May 2022, when it reached general availability. Since then a new major version has shipped alongside each annual .NET release. Each version is supported until at least six months after its successor arrives.

The background matters for anyone with an older app. Xamarin, which Microsoft acquired in 2016, was the earlier way to write iOS and Android apps in C#. Microsoft ended support for all Xamarin SDKs, including Xamarin.Forms, on 1 May 2024. Xamarin apps no longer receive updates or security fixes, and the last Xamarin versions target Android API 34 and Xcode 15, so they fall further behind the app store requirements with every platform release. Microsoft's recommended path is to migrate them to .NET MAUI, or to .NET for Android and .NET for iOS for apps that used the platforms directly.

How .NET MAUI works

One project, many targets. A .NET MAUI app is a single project that holds shared code, images, fonts and app icons. Platform-specific code and settings live in per-platform folders inside that same project, and the build produces an Android, iOS, macOS or Windows app from it.

Native controls through handlers. When you place a Button or an Entry on a page, .NET MAUI maps it to the platform's own control: an Android view, a UIKit control on iOS and macOS, a WinUI control on Windows. The mapping is done by handlers, a lighter architecture than Xamarin.Forms' renderers, and you can customise a handler to change how a control behaves on one platform.

XAML or C# for the interface. Screens are usually described in XAML, an XML-based markup language familiar to WPF and UWP developers, and connected to code through data binding. Most teams use the Model-View-ViewModel (MVVM) pattern, which keeps screen logic in testable view model classes. You can also build the whole interface in C#.

Compiled per platform. On iOS the app is compiled ahead of time to native code, as Apple requires. On Android it runs on the .NET runtime, with ahead-of-time compilation available to speed up start-up. Windows apps run as WinUI 3 desktop apps.

Access to the device. Common device features such as geolocation, sensors, secure storage, connectivity and the file picker are available through cross-platform APIs, and any native Android or iOS API can be called directly from C# when the shared APIs are not enough.

Key features

  • Native look and feel, because each platform renders its own controls.
  • Hot Reload for both XAML and C#, so interface changes appear without restarting the app.
  • Blazor Hybrid, which hosts Blazor web components inside a native app and lets a team share interface code between a web app and a mobile or desktop app.
  • Shared .NET libraries: the same NuGet packages, models and validation code as the backend.
  • Visual Studio and VS Code tooling, with debugging on emulators, simulators and physical devices.
  • Open source under the MIT licence, developed on GitHub by Microsoft and the community.

Where .NET MAUI is used

  • Enterprise line-of-business apps: approvals, inspections, inventory and reporting apps used by employees.
  • Field and service apps that need to run on Android tablets, iPads and Windows laptops from one codebase.
  • Windows desktop plus mobile: products that need a real Windows app as well as phone apps.
  • Xamarin migrations: existing Xamarin.Forms apps moved to a supported framework.
  • Companion apps for .NET systems, where the backend runs on .NET and the team wants to share models and API clients.

When to choose .NET MAUI, and when not to

Choose .NET MAUI when:

  • Your team works in C# and .NET, and you want to reuse its skills and libraries for mobile.
  • You need Windows desktop and mobile apps from the same code.
  • You are maintaining a Xamarin.Forms app and need a supported path forward.
  • The app integrates closely with Microsoft services such as Entra ID, Microsoft 365 or Azure.

Look elsewhere when:

  • The app's value is a highly custom, brand-led interface that must look identical on every device. Flutter, which draws every pixel itself, is built for that.
  • Your team is a JavaScript and React team. React Native lets it share skills and some code with the web.
  • You need Linux desktop support. .NET MAUI does not target Linux; Avalonia UI does.
  • The app depends on the newest platform features on day one. Native Swift and Kotlin get them first.

The common complaints about .NET MAUI are a smaller third-party ecosystem than Flutter or React Native and platform-specific bugs that need handler-level fixes. Budgeting time for testing on every target platform is part of a realistic plan.

.NET MAUI and its alternatives

OptionLanguageHow the UI is drawnBest fit
.NET MAUIC#, XAMLNative platform controls.NET teams, Windows plus mobile
FlutterDartOwn rendering engineCustom design, many platforms
React NativeJavaScript / TypeScriptNative platform componentsReact teams sharing code with the web
Avalonia UIC#, XAMLOwn rendering engine.NET desktop apps, including Linux
Native (Swift, Kotlin)Swift, KotlinPlatform UI toolkitsPlatform-first apps

Against Flutter and React Native, the deciding factor is usually the team. A .NET shop gets the most from MAUI because the whole stack stays in one language; a team without .NET experience gets a larger ecosystem and community from Flutter or React Native. We compare those two in Flutter vs React Native: why we choose Flutter on new projects.

For anyone still on Xamarin, the question is not whether to move but where. .NET MAUI is the shortest path because the concepts and much of the code carry over; a rewrite in Flutter can make sense when the interface is being redesigned anyway.

How we use .NET MAUI at Internative

We use .NET MAUI for enterprise cross-platform applications where shared code, long-term maintainability and deep integration with the Microsoft ecosystem are what the project needs most.

If you are planning a mobile or desktop app for a .NET environment, or need to move a Xamarin app before it falls further behind, our mobile application development team can help you choose between .NET MAUI and the alternatives.

Frequently asked questions

What is .NET MAUI used for?

.NET MAUI is used to build native apps for Android, iOS, macOS and Windows from one C# codebase. It is most common in enterprise apps, field and service apps, internal tools and products that need both a Windows desktop app and mobile apps.

Has .NET MAUI replaced Xamarin?

Yes. .NET MAUI is the successor to Xamarin.Forms, and Microsoft ended support for all Xamarin SDKs on 1 May 2024. Existing Xamarin apps still run, but they receive no updates or security fixes, so Microsoft recommends migrating them to .NET MAUI or to .NET for Android and .NET for iOS.

Is .NET MAUI based on XAML?

XAML is the usual way to describe screens in .NET MAUI, and it works with data binding and the MVVM pattern. It is not required: the same interface can be written entirely in C#, and Blazor Hybrid apps use HTML and Razor components instead.

Is .NET MAUI better than React Native or Flutter?

Not in general. .NET MAUI suits teams already invested in C# and .NET, especially when Windows desktop support matters. Flutter suits custom, brand-led interfaces, and React Native suits React teams. The team's skills and the existing stack usually decide it.

Is .NET MAUI a good choice for new projects?

For .NET teams, yes: it is Microsoft's supported cross-platform framework, it ships with every .NET release, and it shares code with .NET backends. Teams starting without .NET should compare it with Flutter and React Native, which have larger communities.

Related services

Where this topic becomes an engagement.

Keep reading

The articles that follow this one.