Skip to sessions and notes

These session notes are AI-generated and may contain mistakes. Verify important details against the original recording.

What’s New in .NET MAUI in .NET 11

Gerald Versluis

Session · 21:12 recording · 7 min read

At a glance

  • CoreCLR runtime everywhere (Android/iOS/Mac Catalyst)
  • Copilot-driven velocity (1,600 PRs/month)
  • Syncfusion, Uno & Avalonia (Linux/Web) partnerships
  • XAML Source Generation by default (Debug == Release)
  • "Less XAML" implicit namespaces & C# expressions ({!IsBusy})

Executive Summary

In this session, Gerald Versluis unveils the massive engineering evolution powering .NET MAUI in .NET 11. Propelled by AI acceleration and deep community/ecosystem partnerships, .NET MAUI in .NET 11 brings monumental architectural shifts: the historic migration from Mono to CoreCLR across Android, iOS, and Mac Catalyst, XAML Source Generation enabled by default, C# expressions directly in XAML, native Material 3 styling, and a reimagined multi-platform inner dev loop featuring incremental hot reload, interactive CLI tooling (dotnet run/test/watch), and the .NET MAUI Inspector in VS Code.

Additionally, Gerald showcases MAUI Labs, an experimental playground featuring the MAUI CLI, DevFlow for autonomous agent visual-tree automation, and Essentials AI for local on-device SLMs (Apple Intelligence, Gemini Nano).

Core Breakthroughs & Architecture Highlights:

  1. The CoreCLR Era: Complete transition from the legacy Mono runtime to CoreCLR across Android, iOS, and Mac Catalyst, aligning MAUI with the wider .NET ecosystem, unlocking all JIT/GC/profiling engine optimizations automatically.
  2. AI-Driven Velocity: Team PR throughput skyrocketed from ~400–500 PRs/month to over 1,600 PRs/month leveraging GitHub Copilot and automated workflows, unblocking long-standing backlog "papercuts".
  3. Ecosystem & Partner Expansion: Strategic collaborations with Syncfusion (free core controls & bug-fixing), Uno Platform (Android API bindings, SkiaSharp co-maintenance, platform contributions), and Avalonia (Linux and Web targets integrated into standard MAUI project templates).
  4. XAML Source Generation by Default: Replaces runtime XAML IL parsing with Roslyn C# source generators. Debug and Release builds now share identical behavior, eliminating trimming surprises and boosting startup performance.
  5. Less XAML & C# Expressions: Elimination of namespace ceremony via implicit namespaces and direct inline C# expressions in XAML (e.g., IsEnabled="{!IsBusy}", string interpolation, arithmetic, event handlers), eliminating boilerplate IValueConverter implementations.
  6. Platform Modernization & UI Polish: Built-in Material 3 for Android via a single project switch with public handlers, map clustering with custom pin image sources, tab and toolbar badges, and native Passkeys support.
  7. Next-Gen Inner Loop: Native CLI integration (dotnet run, dotnet test, dotnet watch) with interactive target prompts, Incremental Hot Reload that retains runtime state/navigation, and the cross-platform .NET MAUI Inspector.
  8. MAUI Labs (dotnet/maui-labs): Cutting-edge incubations including MAUI CLI (agent-friendly JSON output), DevFlow (in-simulator testing agent), and Essentials AI (on-device SLMs).

Detailed Section-by-Section Breakdown

1. Velocity, Copilot & Community Partnerships

Presenter: Gerald Versluis

Gerald highlights the sheer development momentum behind .NET MAUI in .NET 11. Powered by GitHub Copilot and automated workflows, the engineering team expanded its velocity from ~400–500 merged PRs/month to over 1,600 PRs/month, smashing previous output records.

Copilot Velocity and Partner Ecosystem
Copilot Velocity and Partner Ecosystem

Key ecosystem partners driving .NET 11:

  • Syncfusion: Deep triage, control toolkit contributions, and open-source collaboration.
  • Uno Platform: Critical co-maintenance of SkiaSharp, bindings for Android APIs, and ongoing mobile runtime contributions.
  • Avalonia: Enabling Linux and Web targets for .NET MAUI apps directly from the project scaffolding templates.

2. Runtime Revolution: The Switch to CoreCLR

The single largest architectural shift in .NET MAUI for .NET 11 is transitioning all mobile platforms (Android, iOS, Mac Catalyst) from Mono to CoreCLR:

  • Unified Runtime: Mobile MAUI apps now execute on the exact same world-class runtime powering ASP.NET Core and Cloud Native .NET.
  • Performance & Diagnostics: Instant access to modern ReadyToRun (R2R), Tiered Compilation, modern JIT optimizations, GC enhancements, and standard .NET profiling tools (dotnet-trace, dotnet-dump, dotnet-gcdump).
  • Benchmark Demonstrations: Using David Ortinau's open-source Barista Notes reference application, CoreCLR delivers significantly faster application startup and leaner memory usage compared to Mono.

CoreCLR Switch Benchmarks on Android and iOS
CoreCLR Switch Benchmarks on Android and iOS


3. XAML Source Generation by Default

For 20 years, XAML relied on runtime parsing or IL compilation (XamlC). In .NET 11, XAML Source Generation is turned on by default:

  • Debug Behaves Like Release: Because Roslyn source generators emit standard C# code for the visual tree at build time, there are zero behavioral discrepancies between Debug and trimmed Release builds.
  • Elimination of Runtime Parsing: Startup is drastically faster since the XAML layout tree is compiled directly into strongly-typed C# object initializations.
  • Full Debuggability: Developers can step into generated C# code, set breakpoints on layout construction, and easily diagnose layout issues with standard C# compiler error messages.

XAML Source Generation by Default
XAML Source Generation by Default


4. "Less XAML": Implicit Namespaces and Streamlined Declarations

To remove visual noise and boilerplate ceremony, .NET MAUI 11 introduces implicit XML namespaces:

  • ViewModels and common schemas no longer require cluttering <ContentPage> headers with dozens of xmlns:vm="clr-namespace:..." attributes.
  • Common namespaces are resolved implicitly by the source generator, reducing the top-of-file ceremony to clean, concise declarations.

Less XAML with Implicit Namespaces
Less XAML with Implicit Namespaces


5. C# Expressions Directly in XAML

One of the most celebrated features is the support for inline C# expressions in XAML bindings, eliminating common utility classes like InvertedBoolConverter:

<!-- Before: Required xmlns, ResourceDictionary converter, and verbose binding -->
<Button IsEnabled="{Binding IsBusy, Converter={StaticResource InvertedBoolConverter}}" />

<!-- In .NET 11: Pure C# Expression directly in XAML -->
<Button IsEnabled="{!IsBusy}" />

Capabilities include:

  • Logical negations ({!IsBusy})
  • String interpolation ({"Welcome " + Name})
  • Basic arithmetic and conditional expressions
  • Direct inline event and command wiring

C# Expressions in XAML
C# Expressions in XAML


6. Native Android Material 3 & Public Handlers

Android UI now defaults to modern Material 3:

  • Enabled via a simple MSBuild flag in the project file.
  • Handlers are made fully public in .NET 11, allowing developers to cleanly inherit and override platform-specific handler behavior without private reflection hacks.
  • Built-in map enhancements: clustering is now a single boolean property (IsClusteringEnabled="True"), complete with cluster click handlers, identifier groups, and custom pin ImageSource.

Material 3 and Handler Customization
Material 3 and Handler Customization


7. Badges, Long-Press & Passkeys

Long-standing community feature requests ("papercuts") have officially landed:

  • Tab & Toolbar Badges: Native badge counters and status indicators on TabBar items and ToolbarItem with customizable colors and data bindings.
  • LongPressGestureRecognizer: Built-in recognizer for long-tap interactions across touchscreens and desktop mice.
  • Native Passkeys: Full platform integration for creating and verifying passkeys (FIDO2 / WebAuthn) for secure biometric authentication.

Tab Badges, Toolbar Badges, and Passkeys
Tab Badges, Toolbar Badges, and Passkeys


8. CLI Developer Experience & Incremental Hot Reload

Tooling receives major upgrades across CLI and IDEs:

  • dotnet run, dotnet test, dotnet watch: Now work seamlessly with .NET MAUI projects. When running without parameters, an interactive CLI prompt detects target frameworks in the .csproj and lets developers choose the simulator or device.
  • Incremental Hot Reload: Instead of destroying and reloading the entire page hierarchy (which loses scroll state, text input, and navigation stacks), incremental hot reload surgically swaps modified components while preserving live in-memory state.

Incremental Hot Reload Retaining Live State
Incremental Hot Reload Retaining Live State


9. .NET MAUI Inspector in VS Code & Cross-Platform Tools

A brand-new visual inspection tool brings enterprise-grade diagnostic experiences to VS Code and lightweight environments:

  • Live Visual Tree: Interactive tree hierarchy showing real-time UI structure.
  • Bi-Directional Selection: Clicking an element in the inspector highlights it in the running simulator; clicking the simulator highlights the node in the tree.
  • Live Property Editor: Adjust colors, margins, bindings, and alignments on running applications without restarting.
  • Available inside Visual Studio Code, the CLI, and browser-hosted development sessions.

.NET MAUI Inspector in VS Code
.NET MAUI Inspector in VS Code


10. MAUI Labs: DevFlow, MAUI CLI & Essentials AI

Gerald concludes with an overview of MAUI Labs (github.com/dotnet/maui-labs), the innovation hub for experimental capabilities:

  • MAUI CLI: Command-line tooling with native --json output designed specifically for agentic AI workflows (invoking simulator management, diagnostics, and environment validation).
  • DevFlow: Simulator automation agent that injects inside the MAUI application to expose the visual tree programmatically, allowing autonomous AI agents to validate UI state, click buttons, and inspect values reliably without relying on imprecise coordinate clicking.
  • Essentials AI: Cross-platform abstraction for querying on-device SLMs like Apple Intelligence and Gemini Nano directly from .NET MAUI.
  • Linux & WPF Backends: Native Linux backend and modernized WPF shell integrations.

MAUI Labs, DevFlow, and AI Automation
MAUI Labs, DevFlow, and AI Automation


.NET MAUI Support Lifecycle Notice

Gerald reminds developers that .NET MAUI follows a 18-month support lifecycle (distinct from standard .NET LTS/STS policies) due to dependencies on third-party mobile OS release cadences:

  • .NET MAUI 11: Supported from November 2026 until May 2028.
  • .NET MAUI 10: Goes out of support in May 2027 (6 months after .NET 11 launch).
  • Upgrades to .NET 11 are strongly encouraged immediately to ensure continuous Apple App Store and Google Play Store compliance.