Preview 11 of Microsoft’s .NET MAUI (Multi-platform App UI), a cross-platform development framework for creating native mobile and desktop applications, has arrived, bringing introductory support for Windows 11 UI styling and support for multi-window applications.
An evolution of Xamarin.Forms, .NET MAUI allows .NET developers to build native apps for iOS, Android, MacOS, and Windows with C# and XAML. The latest preview, which was unveiled January 5, runs on the latest preview of .NET and is available with Visual Studio 2022 17.1 Preview 2 on Windows.
In support of Windows 11 UI styling based on the Fluent Design System, Preview 11 includes updates to MAUI’s Button, Entry, and Editor controls. Windows 11 includes an update to Fluent, and .NET MAUI styles controls to use the latest version.
Also featured in .NET MAUI Preview 11 is the introduction of support for multiple windows in applications, a major update compared to Xamarin.Forms.
Application.Current.Windows holds references to all windows created. The Windows App SDK implementation of multi-window will be in an experimental release for now.
Meanwhile, templates have been updated to use C# 10 patterns such as implicit usings and file-scraped namespaces. Item templates have been added for
To unify Xamarin SDKs with .NET 6, Microsoft has been updating Apple-related SDKs to use native
nuint types in .NET 6 rather than
System.nuint. This impacts libraries for iOS, MacOS, and tvOS using .NET 6. To adopt this change, developers must recompile code against .NET 6.
To explicitly use any of these types, developers should update their .NET 6 code to use the C# types. In addition, new documentation has been published for .NET MAUI.