loading experience

.NET

What's new in .NET MAUI for .NET 11

Everything new in .NET MAUI for .NET 11: CoreCLR by default, controls, XAML, Hot Reload, Android, iOS and how to install the workload.

In .NET 11, the focus of .NET MAUI is product quality. The framework still ships as a .NET workload plus several NuGet packages, which makes it easy to pin a project to a specific version and to try unreleased builds. Here is everything listed on the official page, grouped by area.

Runtime: CoreCLR by default

CoreCLR becomes the default runtime on every MAUI platform for projects targeting .NET 11, while NativeAOT is available as an opt-in publishing alternative. Unifying the runtime benefits debugging, profiling, Hot Reload, app size and performance. On Android, Release builds use composite partial ReadyToRun; on iOS and Mac Catalyst, CoreCLR uses composite partial ReadyToRun in Debug and composite full ReadyToRun in Release, with the interpreter always enabled for code that is not precompiled.

Controls

  • Material 3 on Android: the handlers for ImageButton, DatePicker, Entry and Slider adopt Material 3 styling; the helper types are public so you can subclass them in handler customizations.
  • BoxView.Fill: a Brush property enabling linear and radial gradients; when set it takes priority over Color.
  • LongPressGestureRecognizer: configurable duration, movement threshold, GestureState and Command binding.
  • Map: pin clustering (IsClusteringEnabled, ClusterClicked), custom pin icons via ImageSource, JSON styling on Android (MapStyle), events such as MapLongClicked and UserLocationChanged, clicks on Circle/Polygon/Polyline, element IsVisible and ZIndex, animated MoveToRegion and MapSpan.FromLocations. On Windows the map is now backed by Azure Maps (token via UseMapServiceToken), with some features, such as user location and shapes, unsupported.
  • Windows: CollectionView uses the CollectionView2 handler by default (revert with UseWindowsCollectionView2Handler set to false).
  • Handlers on Apple and Android: Shell on Android uses the handler-based architecture; NavigationPage, TabbedPage and FlyoutPage on iOS and Mac Catalyst move to the new handlers. For NavigationPage the timing of Appearing changes (use NavigatedTo) and secondary toolbar items go to an overflow menu. The renderers remain as a manual fallback.
  • TabbedPage badges with BadgeText, BadgeColor and BadgeTextColor. SwipeItem gains IconColor and TextColor, and non-font images keep their original colors.
  • HybridWebView: JavaScript-to-.NET invocation with source-generated JSON metadata, compatible with NativeAOT and full trimming. BlazorWebView: StaticContentCacheControlProvider caches local static content.
  • The optional Microsoft.Maui.Controls.Compatibility package is no longer built or shipped, and the Color record is sealed.

Navigation, animation and accessibility

Shell routes registered with Routing.RegisterRoute can contain path parameters (route templates, inspired by ASP.NET Core and Blazor routing) with required, optional, defaulted, constrained and catch-all segments; for now they require absolute navigation. The ...ToAsync animation methods accept a CancellationToken, and the non-Async variants are obsolete. For accessibility, Windows layouts create MauiLayoutAutomationPeer instances when they expose automation information, and you can set the back button's spoken label with BackButtonAccessibilityLabel (NavigationPage) and AccessibilityLabel (Shell's BackButtonBehavior).

Platform features

  • Passkeys: the Passkeys class drives the WebAuthn/FIDO2 ceremony through the platform authenticator (CreateAsync, AssertAsync); verification remains the server's job.
  • MediaPickerOptions.SaveToGallery, recovery of MediaPicker results on Android after process recreation, GeolocationListeningRequest.MinimumDistance and MSL altitude on Android API 34+.
  • Window.StatusBarTheme for status bar icons, and MauiAndroidSystemBarsUseMauiChrome to use MAUI chrome colors in Android system bars.
  • Windows AppInstance activation through OnAppInstanceActivated, useful for single-instance apps.
  • MonochromeFile for Android adaptive icons, dark-mode splash screens (DarkFile, DarkColor, DarkTintColor) and ResizeQuality for image resizing.
  • Permissions.PostNotifications is implemented on iOS, and an IPermissions abstraction is available through Permissions.Current.
  • CSS support is fully trimmable: without stylesheets it is removed at publish. New InvalidateStyle and InvalidateVisualStates APIs.

XAML and Hot Reload

  • The x:Code directive for inline C# in XAML (requires EnablePreviewFeatures).
  • Implicit XAML namespace declarations are on by default, compiled bindings work correctly inside DataTemplate, and invalid x:DataType values now produce diagnostics.
  • Lazy ResourceDictionary loading: the notes cite up to roughly an 8x improvement in initializing large dictionaries.
  • RelativeSource bindings with an AncestorType compile to AOT-safe bindings.
  • XAML Incremental Hot Reload applies edits to every live instance of pages and controls; it is on by default in Debug and can be disabled with EnableMauiIncrementalHotReload set to false.

Testing and command-line tooling

New test project templates cover Android, iOS, tvOS, macOS and Mac Catalyst (androidtest, iostest, tvostest, macostest, maccatalysttest); they use Microsoft.Testing.Platform and run with dotnet test. dotnet run prompts for the target framework and device when needed, and dotnet watch works on Android and iOS (iOS needs <MtouchLink>None</MtouchLink>).

.NET for Android and iOS

  • Android: minimum API 24 (Android 7.0) instead of 21; x86 is not supported, arm32 is. Faster builds and smaller packages, optional full ReadyToRun via MauiEnableFullReadyToRun; JavaFinalize() is obsolete. NativeAOT is experimental.
  • Apple: iOS, tvOS and Mac Catalyst 18.2, macOS 15.2, Xcode 26.4, HTTP digest authentication in NSUrlSessionHandler, Apple Intelligence APIs, the NativeAOT registrar by default, dSYM files generated by default and headers/modules stripped from bundled frameworks (StripFrameworkHeaders).

Installing .NET MAUI

According to the official installation page, you need Visual Studio 2022 17.12 or later, or Visual Studio Code with the .NET MAUI extension; building for iOS and macOS requires a Mac compatible with Xcode. With the .NET SDK installed, you can add the workload manually with dotnet workload install maui (on Linux, maui-android) and check it with dotnet workload list. Useful links: the .NET MAUI installation guide, the .NET 11 download page and the .NET releases on GitHub.

Sources

Comments (0)

No comments yet.

Leave a comment