.NET MAUI Finally Gets Maps Clustering and Long Press - .NET 11 Preview 3
.NET 11 Preview 3 brings a batch of long-awaited .NET MAUI improvements. Gerald demos each one with a sample app, showing what the code looks like and how easy the new APIs are to use.
What you’ll learn
- Maps upgrades: pin clustering with
ClusteringIdentifier, custom pin icons viaImageSource,MapLongClickedevent, and click handlers on circles, polygons, and polylines - The new
LongPressGestureRecognizer: built-in long press support withMinimumPressDuration, state tracking, position tracking, and command binding — no more toolkit workarounds - XAML improvements: implicit namespace declarations enabled by default, XAML source generation compiling XAML to C# for faster startup
- New styles API with
InvalidateStyle()andVisualStateManager.InvalidateVisualStates()for Hot Reload - Build improvements: smaller release builds (77.8 MB down to 41.6 MB on Apple platforms) and faster incremental builds
- How to safely test .NET 11 previews locally without affecting your system-wide .NET installation