Good Design Thinking Strategy is Good Business
- September 19
- 14 min
NET MAUI is the successor to Xamarin (acquired by Microsoft in 2016). NET MAUI offers improvements over Xamarin, including better performance and developer experience, better support for mobile, extended to desktop support, and easier deployment. In this blog post, we’ll take a closer look at what makes NET MAUI such a valuable tool for developing cross-platform user interfaces for iOS, macOS, Android, Windows and Tizen (through a partnership with Samsung) with C# and XAML.
At its core, .NET MAUI is a cross-platform open-source UI framework, a part of the .NET platform. It’s designed to make it easy for developers to create native user experiences for all the major platforms (iOS, macOS, Android, Windows) using a single codebase. This means that you can target multiple platforms with a single source code instead of creating separate environments. Not only does this save time and money, but it also allows you to deliver a consistent experience across all your platforms.
.NET MAUI’s acronym stands for Multi-platform Application UI. It is the next evolution of Xamarin and Xamarin.Forms frameworks. MAUI unites separate target libraries and projects into a single project for multiple devices. It is the next unveiling of the .NET 6 unification steps (also known as the Journey to One .NET). .NET MAUI supports the development of the applications on Android 5+, iOS 10+, macOS 10.15+, Windows 10 version 1809+, or Windows 11.
Xamarin.Forms is an abstraction layer that allows shared code to interact with Android, iOS and Windows base platform code. Xamarin.Forms is typically used to create native cross-platform applications.
Using Xamarin.Forms, the cross-platform mobile app developer can cut development time by writing all the business logic in a single language. Nearly 90% of the code is shared across the platforms, achieving native performance and the same look and feel on each platform.
Why are .NET and C# good for business development?
You will find it all explained here!
.NET MAUI is built as an upgrade to Xamarin.Forms, taking the platform’s evolution to the next level. In addition to mobile scenarios, MAUI has been extended to desktop scenarios with UI controls rebuilt from the ground up for performance and extensibility. .NET MAUI is Microsoft’s next step forward to create a unified .NET platform as a single base class for .NET Core and Mono/Xamarin.
.NET MAUI is recommended for new developments, Xamarin and Xamarin.Forms will be officially supported until May 1, 2024.
.NET MAUI delivers a single framework for building user interfaces for mobile and desktop applications. .NET MAUI apps can be written on PC or Mac, and compiled into native packages. The introduction of the .NET MAUI brings new features for a better developer experience.
A single project of .NET MAUI provides a streamlined and unified cross-platform developer experience, no matter the end intended platform.
It takes the platform-specific development experiences that developers usually face during the development cycle and aggregates them into one common project that can address Android, iOS, macOS, and Windows.
Projects developed in .NET MAUI allow placing the platform in a subfolder. This solution gives developers a focus on application development. In the Resources folder of the project, you have one place to manage fonts, images, application icon, start screen, raw assets and styling. .NET MAUI works to optimize these for the unique requirements of each platform.
In contrast to Xamarin, which uses separate projects for each platform a single common project of MAUI unifies Android, iOS, macOS, Tizen and Windows app development. It provides simpler debug target selection, shared resource files, a manifest that specifies the application title, ID and version, access to platform-specific APIs and tools, and a single, cross-platform entry point to the application.
.NET MAUI is integrated with .NET 6. Xamarin.Forms is integrated with .NET Core 3.1. Integration with .NET 6 allows MAUI to incorporate new .NET 6 and C#10 features.
Cross-platform APIs for accessing native device functions allow apps to access features such as GPS, accelerometer, and battery and network statuses. Moving beyond mobile app development allows for the development of more tailored applications to meet business and user requirements.
The cross-platform graphics functionality in .NET MAUI provides a canvas for drawing and painting shapes & images and compositing operations. Xamarin, on the other hand, executes drawing requirements on the native side using renderers or via SkiaSharp in Xamarin.Forms.
The .NET MAUI is designed to provide the best app experience, uniquely developed for each platform (Android, iOS, macOS, Windows and Tizen), while ensuring a consistent and rich brand experience.
.NET MAUI adds to Xamarin mobile controls, support for desktop applications with multiple windows, menu bars, and new animation capabilities, borders, corners, shadows, graphics and more.
MAUI offers support for building inclusive experiences. In many situations, legal requirements for accessibility can provide an incentive for developers to address accessibility aspects, e.g.: Web Content Accessibility Guidelines (WCAG). Regardless, it makes sense to build applications with people with equal needs in mind.
.NET MAUI offers Semantic properties – the .NET MAUI approach to ensuring accessibility value in applications and is recommended to use. Xamarin.Forms offers an automation properties approach to ensuring accessibility. This has been overtaken by semantic properties. Semantic properties allow for control of, for example, description, hint and header level, focus, screen reader and automation properties.
Xamarin.Forms support MVVM (model-view-viewmodel) and RxUI (ReactiveUI) patterns. MAUI’s support was extended and, in addition, provides support for MVU (model-view-update) and Blazor development patterns.
.NET MAUI integrates with Blazor. By merging .NET MAUI and Blazor, developers can easily leverage the ability to create cross-platform native applications and build a single user interface that covers mobile, desktop and web components.
Blazor compiles and executes in the .NET workflow, is not limited to the web platform, and can use any native platform features such as notifications, Bluetooth, geolocation, file system and more.
.NET MAUI unifies key libraries. It combines Xamarin.Essentials libraries with .NET MAUI, making it easy to use device capabilities such as device sensors, photos, contacts, and other services in regular use, such as authentication and secure storage.
.NET MAUI also speeds up the development in Visual Studio. Hot Reload, Live Visual Tree and XAML Live Preview are dedicated features allowing developers to apply changes to the code and see them immediately.
And not just in terms of optimizing the work of developers. UI controls in .NET MAUI implement a thin, decoupled handler-mapper pattern over native platform controls. This reduces the number of layers in UI rendering and simplifies control customization. Transitioning to .NET 6 brings significant performance improvements and reduced application size. You can see the details here.
The advantages are numerous, in addition to ease of use, unification of libraries, and providing an excellent developer experience, we can also mention the following:
.NET MAUI is not a flaw-free solution. Microsoft is currently working on optimizing it and fixing key bugs. The technology was released in mid-2022. Some teams are still resistant to the .NET MAUI transition because of the in-between status of the .NET MAUI roadmap. Also, XAML skills are an ongoing shortage in the job market.
Nevertheless, the advantages that .NET MAUI brings, as well as the end of Xamarin.Forms support, make it clear that mobile and desktop application development will be held and streamlined soon with MAUI.
.NET is not just about app development.
Explore the capabilities of the.NET platform for business growth!
Definitely! Microsoft’s broad support, its further plans to develop an even better and unified software development platform, cloud solutions as well as the use and development of agile technologies leaves no doubt.
.NET MAUI will excel for new business projects, especially for brands that want to provide an optimized user experience not only on mobile but also web and desktop. .NET development means smooth and future-proof business operations. Check out our .NET-based projects!