Technology

Unveiling .NET MAUI 10 Preview 6: Exciting Performance Boosts and Key Updates!

2025-07-28

Author: Olivia

Get ready, developers! On July 15th, Microsoft unleashed the sixth preview of .NET MAUI as part of its .NET 10 rollout, packed with enhancements that promise to supercharge your productivity and elevate framework performance.

For the uninitiated, MAUI stands for Multiplatform Application UI. This groundbreaking framework is the evolution of Xamarin and Xamarin Forms, merging separate libraries into one, allowing developers to build applications for multiple devices seamlessly. MAUI currently supports a wide range of platforms including Android (5+), iOS (12.2+), macOS (12+ via Mac Catalyst), and Windows 10 (version 1809+) or Windows 11. The latest preview maintains compatibility with existing minimum platforms while adding support for the latest Android API levels 35 and 36.

Game-Changing Features: MediaPicker and WebView Enhancements!

One of the highlights in this release is the revamped MediaPicker control, which now allows developers to select multiple files and compress images directly through the API. With new parameters for MaximumWidth and MaximumHeight, developers can easily manage and process user-generated content in a straightforward manner.

Imagine writing code like this for effortless media handling:

```csharp var result = await MediaPicker.PickMultipleAsync(new MediaPickerOptions { MaximumWidth = 1024, MaximumHeight = 768 }); ```

But that’s not all! The update also enhances BlazorWebView and HybridWebView controls, allowing developers to intercept and manage web requests. This means you can now tweak headers, redirect requests, or even provide local responses, giving you unprecedented control over web interactions within your applications.

Check out how easy it is to implement:

```csharp webView.WebResourceRequested += (s, e) => { if (e.Uri.ToString().Contains("api/secure")) { e.Handled = true; e.SetResponse(200, "OK", "application/json", GetCustomStream()); } }; ```

Boosting Performance and Stability Across the Board!

The performance and stability upgrades don’t stop there! This preview includes a plethora of enhancements to controls like CollectionView, CarouselView, and SearchBar, ensuring smoother functionality across all platforms. With improved updates for selection, placeholder colors, and memory management, these fixes are all about delivering a seamless user experience.

Notably, a pesky memory leak in the CarouselViewHandler2 on iOS has been squashed, greatly enhancing overall application stability. Plus, the Switch control now defaults to the native "on" color if the OnColor property is left unset, ensuring that all users enjoy a consistent interface.

As .NET MAUI continues to evolve, these updates signal Microsoft's commitment to empowering developers with the tools they need to create exceptional applications across diverse platforms.