.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.

bytehide.com
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:

bytehide.com
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

Optional Parameters in C#: What You Need to Know

Optional Parameters in C#: What You Need to Know

Programming in C# often requires flexibility and simplicity ...

What is Lock Keyword in C#? Main Usages

What is Lock Keyword in C#? Main Usages

IndexUnderstanding the C# Lock Keyword Can’t tell a lock fro...

Enumerate in C#: Detailed Explanation

Enumerate in C#: Detailed Explanation

Desperate to decode the mystery that is enumeration in C#? I...

Creating a JSON Class in C#: Detailed Guide

Creating a JSON Class in C#: Detailed Guide

In the world of application development, manipulation of dat...

Static Class in C#: How to Use It?

Static Class in C#: How to Use It?

Hello there, future C# aficionado! It’s time to roll down th...

DateTime Formatting in C#: Dev Guide

DateTime Formatting in C#: Dev Guide

Have you ever gotten frustrated handling dates and times in ...

Leave a reply

Loading comment form...