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

.NET MAUI (RC3) New Features – Release Candidate 3

.NET MAUI (RC3) New Features – Release Candidate 3
May 10, 2022
3 minutes read

Microsoft is not letting time pass and continues to keep the focus on .NET MAUI, its .NET platform focused on the creation of cross-platform applications. This time it officially presents the launch of the adding even more new features.

I remind you that Microsoft is already giving official support for these Release Candidates and that you only need to upgrade to the latest version of Visual Studio 2022 to take full advantage of the new features and functionality included.

No more intro, let’s see what’s new in .NET MAUI!

New navigation options

Now navigation in the applications becomes much easier! Microsoft now provides 2 different ways to implement navigation in your applications developed with .NET MAUI.

The first one is to use the base navigation page controls (such as NavigationPage, FlyoutPage or TabbedPage).

The second one (and the one that Microsoft recommends because it is more powerful) is to start and run the application in Shell. This way you will be able to have more accurate and optimized details for the possible patterns in both desktop and mobile .NET MAUI applications.

This second option is the one recommended by Microsoft to start directly with an optimized browsing experience for any platform. However, if at any time you feel like changing the default optimized navigation for much more specific custom controls, you can do it without any problem!

Here is a small Microsoft example of what it would look like:

bytehide.com
Navigation in .NET MAUI app (Source: Microsoft)

ShellContent

For those who don’t know, ShellContent is a Xamarin.Forms class that now with .NET MAUI allows you to add a wide variety of t customizations such as customizing the background, backdrop or even the header, footer or the entire content.

bytehide.com
Flyout example (Source: Microsoft)

This also allows you to improve navigation through URI paths allowing you to improve performance at application startup time loading pages only when required using data templates.

Again, Microsoft leaves us an example:

Loading code snippet...

And the result would be as follows:

bytehide.com
Flyout example (Source: Microsoft)

Route customization

Declaring and executing new routes is now much easier. According to Microsoft, if we need navigation to deeper pages, we just have to declare them and navigate by URI with the possibility of passing parameters.

  • Declaring a new route:

Loading code snippet...

  • Executing a route:

Loading code snippet...

  • Passing parameters

Loading code snippet...

https://gist.github.com/lgolubyev/0c410e07788c4c795b389dd79b3d8a17
  • Receiving parameters

Loading code snippet...

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