Skip to content

jfversluis/MauiNet11Preview3Sample

Repository files navigation

.NET MAUI 11 Preview 3 Sample App

Sample app showcasing new features in .NET MAUI 11 Preview 3.

For a full walkthrough, check out the video: What's New in .NET MAUI 11 Preview 3

Features

Maps

  • Pin clustering — group nearby pins automatically with IsClusteringEnabled and ClusteringIdentifier
  • Custom pin icons — use any image as a pin marker via Pin.ImageSource
  • Long press to drop pinsMapLongClicked event for adding pins interactively
  • Overlay click eventsCircleClicked and PolygonClicked on map elements
  • Overlay visibility — toggle overlays with MapElement.IsVisible

LongPressGestureRecognizer

  • Built-in long press — first-party LongPressGestureRecognizer with configurable MinimumPressDuration
  • State trackingLongPressing event with GestureStatus for real-time feedback
  • Position trackingGetPosition() to get touch coordinates relative to any element

XAML Improvements

  • Implicit namespaces — no more xmlns= boilerplate; standard MAUI and x: namespaces are implicit in .NET 11
  • Source generation by default — XAML source gen is now on for all pages with lazy resource loading
  • New style APIsInvalidateStyle() and VisualStateManager.InvalidateVisualStates() for runtime style mutations

Prerequisites

Getting Started

git clone https://github.com/jfversluis/MauiNet11Preview3Sample.git
cd MauiNet11Preview3Sample

# iOS
dotnet build -f net11.0-ios
dotnet build -t:Run -f net11.0-ios

# Android
dotnet build -f net11.0-android
dotnet build -t:Run -f net11.0-android

Screenshots

Maps Long Press XAML
Pin clustering, custom icons, overlays Configurable duration, position tracking Implicit namespaces, source gen

License

This project is licensed under the MIT License.

About

.NET MAUI 11 Preview 3 sample app - Maps, LongPressGestureRecognizer, XAML improvements

Topics

Resources

Stars

Watchers

Forks

Contributors

Languages