Runar Ovesen Hjerpbakk

Programmer. Software Architect. Technical Manager.

Introducing .NET Multi-platform App UI →

Late last year I wrote on how to use F# and functional patterns for creating apps with Xamarin Forms. This Build, Microsoft has both understood the power of the MVU-pattern and unveiled a new unified way of building cross-platform native frontends from a single codebase!

Introducing .NET Multi-platform App UI

Introducing .NET Multi-platform App UI, simplifying the choices for .NET developers, providing a single stack that supports all modern workloads: Android, iOS, macOS, and Windows. The native features of each platform and UI control are within reach in a simple, cross-platform API for you to deliver no-compromise user experiences while sharing even more code than before.

I even supports MVU, enabling you to write your UI-code and logic in C# like this:

readonly State<int> count = 0;

[Body]
View body() => new StackLayout
{
    new Label("Welcome to MAUI!"),
    new Button(
        () => $"You clicked {count} times.",
        () => count.Value ++)
    )
};

Simple, understandable and hot-reload friendly. I for one can’t wait to get my hands on MAUI!