Sands of MAUI: Issue #42

Welcome to the Sands of MAUI—newsletter-style issues dedicated to bringing together the latest .NET MAUI content relevant to developers.


This content originally appeared on Telerik Blogs and was authored by Sam Basu

Welcome to the Sands of MAUI—newsletter-style issues dedicated to bringing together the latest .NET MAUI content relevant to developers.

A particle of sand—tiny and innocuous. But put a lot of sand particles together and we have something big—a force to reckon with. It is the smallest grains of sand that often add up to form massive beaches, dunes and deserts.

Most .NET developers are looking forward to .NET Multi-platform App UI (MAUI)—the evolution of Xamarin.Forms with .NET 6. Going forward, developers should have much more confidence in the technology stack and tools as .NET MAUI empowers native cross-platform solutions on mobile and desktop.

While it is a long flight until we reach the sands of MAUI, developer excitement is palpable in all the news/content as we tinker and prepare for .NET MAUI. Like the grains of sand, every piece of news/article/video/tutorial/stream contributes toward developer knowledge and we grow a community/ecosystem willing to learn and help.

Sands of MAUI is a humble attempt to collect all the .NET MAUI awesomeness in one place. Here’s what is noteworthy for the week of January 31, 2022:

.NET MAUI Preview 12 Overview

What comes immediately after every .NET MAUI Preview release—a helpful Gerald Versluis video breaking down all that’s new for developers. Gerald produced an overview of .NET MAUI Preview 12 video, recapping what’s new in the latest release and paving a path for developers to get started.

As .NET MAUI nears RC/GA, the releases are focusing more on stability, but Preview 12 packs a punch with Shell improvements for .NET MAUI. The much-hyped Dependency Injection support is fully baked in now, and developers can actually use DI with Shell—Gerald shows off a elegant example of .NET MAUI Shell Dependency Injection in action.

Maui12Overview-Gerald Versluis video screenshot

All Things .NET MAUI

Bryan Hogan hosts the No Dogma podcast and invited Brandon Minnick to talk about all things .NET MAUI. The casual conversation touched upon all UI choices developers have on the .NET stack to reach desktop/mobile and the eventual evolution into .NET MAUI.

Brandon talks about the benefits of .NET MAUI in reaching modern mobile and desktop platforms from a shared single codebase and developer flexibility that comes from .NET MAUI interface-based Handler architecture. Talking points meandered into how .NET developers building web apps with Blazor are now welcome to bring web goodness into native apps and share code easier.

Want to know all the fun you have when shipping apps to the App Stores? Brandon has good stories with his popular GitTrends app, which may see an upgrade from Xamarin.Forms to .NET MAUI someday. Thinking of getting into .NET MAUI—this podcast episode is your perfect relaxed way in.

NoDogmaMaui-Bryan Hogan-Brandon Minnick-screenshot

Organizing .NET MAUI Startup

.NET MAUI brings in consistency with rest of .NET ecosystem as to how apps are bootstrapped—the .NET Generic HostBuilder pattern is the one in use. The MauiProgram class provides a single point of entry for .NET MAUI apps and brings in all configurations/registrations for services. However, experienced .NET developers know that application startup code can often get long and messy—Luis Matos offers a few remedies with best practices on how to organize .NET MAUI startup.

Luis starts off talking about all the Services available for wiring up as a .NET MAUI app starts up—like Handlers, Configurations, managing Fonts/Images and more. One wonderful pattern for organizing all things needed on .NET MAUI startup is an Extension Method—a way to extend an existing type without creating a derived type or modifying the original one. Be it Fonts/Services/Handlers/third-party libraries, Extension Methods make it easy to register dependencies and split each configuration into separate files—Luis shows off the benefits of organization sanity as .NET MAUI apps get started up.

OrganizeStartup-Luis Matos-Best practice for organizing your configuration file in .NET MAUI

Exploring .NET MAUI Overlays

Michael Ridland has started a wonderful article series—.NET MAUI Source of Truth. As developers know, source code is the purest form of truth in working software—so Michael is diving deep into .NET MAUI source code and sharing experiences. The latest writeup explores Overlays in .NET MAUI and the present state of implementation across platforms.

Michael notes that while there are clear methods to Add/Remove Overlays on top of existing Views/Windows, finding how it works takes a bit of digging around—a Draw method exists on the WindowOverlay with implementations for each platform. With it being early days for .NET MAUI, there are implementations to draw/invalidate/redraw Overlays—but there is no support for Controls, Animations or Transitions yet. Overlays can be handy for many UI scenarios and Michael hopes this functionality is developed further in .NET MAUI.

Maui Overlays

Client App Dev Shenanigans

Two friends and nerds make a tech podcast—that’s James Montemagno and Frank A. Krueger doing Merge Conflict. For the 290th Merge Conflict episode, the duo opened up for a lightning round of questions fed by the audience, and most talking points evolved around modern client-side app development, in particular, .NET MAUI.

The whirlwind quick-fire show touched upon most things on developer minds—.NET 6, Minimal APIs, Comet for MVU, Xamarin.Forms, Visual Studio, desktop setups, the latest with iOS/Android and, of course, many things .NET MAUI. Give it a listen on your next long drive.

Merge Conflict Maui podcast screenshot

That’s it for now.

We’ll see you next week with more awesome content relevant to .NET MAUI.

Cheers, developers!


This content originally appeared on Telerik Blogs and was authored by Sam Basu


Print Share Comment Cite Upload Translate Updates
APA

Sam Basu | Sciencx (2022-01-31T11:49:00+00:00) Sands of MAUI: Issue #42. Retrieved from https://www.scien.cx/2022/01/31/sands-of-maui-issue-42/

MLA
" » Sands of MAUI: Issue #42." Sam Basu | Sciencx - Monday January 31, 2022, https://www.scien.cx/2022/01/31/sands-of-maui-issue-42/
HARVARD
Sam Basu | Sciencx Monday January 31, 2022 » Sands of MAUI: Issue #42., viewed ,<https://www.scien.cx/2022/01/31/sands-of-maui-issue-42/>
VANCOUVER
Sam Basu | Sciencx - » Sands of MAUI: Issue #42. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2022/01/31/sands-of-maui-issue-42/
CHICAGO
" » Sands of MAUI: Issue #42." Sam Basu | Sciencx - Accessed . https://www.scien.cx/2022/01/31/sands-of-maui-issue-42/
IEEE
" » Sands of MAUI: Issue #42." Sam Basu | Sciencx [Online]. Available: https://www.scien.cx/2022/01/31/sands-of-maui-issue-42/. [Accessed: ]
rf:citation
» Sands of MAUI: Issue #42 | Sam Basu | Sciencx | https://www.scien.cx/2022/01/31/sands-of-maui-issue-42/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.