Discount offer: Get 35% off on all editions with the code 35OFF

.NET MAUI (RC1) New Features – Release Candidate 1

.NET MAUI (RC1) New Features – Release Candidate 1
April 12, 2022
3 minutes read

.NET MAUI is now a reality! After so many months of speculations, previews and rumors Microsoft officially launches the first Release Candidate of the cross-platform application development platform .NET MAUI!

As a spoiler, these new features are already available for the latest version of Microsoft’s IDE: Visual Studio 2022 (although for the moment for Mac you will have to follow, according to Microsoft, the command line instructions).

Cross-Platform SDKs

This first Release Candidate of .NET MAUI includes (Windows, iOs, Android and macOS). One of the main advantages of .NET MAUI is that these SDKs can be easily used with C#. This allows you to “reuse” code from other platforms (cross-platform compatible code) allowing you to get the most out of .NET MAUI.
Cross-platform .NET MAUI code compatibility (Source: Microsoft)

This is a big step forward because cross-platform application development will be much easier and more efficient (something I know many .NET developers were expecting from Microsoft).

Layouts and Controls

Another new feature of .NET MAUI Release Candidate 1 is that Microsoft adds (more than 40). All these layouts and controls are prepared and optimized to be able to adapt to any type of user interface (both for mobile applications and desktop applications).

These more than 40 controls are mainly divided into 3 categories:

The great thing about this is that in .NET MAUI, we will also have all of the Xamarin.Forms UI controls.

Another great advantage is that there is the possibility of using blazor application components to make an equal experience in web applications, desktop applications and mobile applications.

New .NET MAUI Template

We are going to continue with new design features and this is a good one too.

Now Microsoft has decided to create a . The improvement here is that now we will be able to set the styles, colors and color palettes we want in the default stylesheet Resourcesstyles.xaml. This way all the controls will load the styles that we are going to define in that style sheet.

Here is the Microsoft example:

Loading code snippet...

This is a very good possibility if we don’t have the need for different platforms (desktop or mobile) to load different types of styles, this way it will always load the same style for all platforms sharing the theme.

Customized controls

We continue with customization. Microsoft now adds the ability to . Using we can explicitly set different conditions or styles for a specific platform that are different from the rest.

The example shown by Microsoft is to remove the underline of an Entry field only on the Android mobile platform:

Loading code snippet...

The advantage of this is that the amount of code needed to customize the style of the controls is very small and only has to be executed at application startup time.

Microsoft leaves us another more visual example:

Loading code snippet...

The result:
Control customization (Source: Microsoft)

This will allow a great customization whatever the scenario and the platforms for which the application is developed.

I remind you that this is Release candidate 1 and that you can now officially use .NET MAUI (with official Microsoft support) to develop your cross-platform applications!

You May Also Like

Scoped vs Transient vs Singleton Service in C#

Scoped vs Transient vs Singleton Service in C#

Care to join me, fellow coding enthusiast, in an exploration...

Palindrome Programs in C# – Complete Guide

Palindrome Programs in C# – Complete Guide

Dear fellow coder, let’s take a journey together into the in...

Fibonacci Sequence in C#: From Zero to Hero

Fibonacci Sequence in C#: From Zero to Hero

Struggling with the Fibonacci sequence in C#? Need a detaile...

Prime Numbers in C#: A Detailed Guide

Prime Numbers in C#: A Detailed Guide

Now, who doesn’t love a little magic trick? But what if I to...

Leave a reply

Loading comment form...