Skip to content

[AI-Suggested] Content update request from Product Release signal: maui 10.0.110 #3558

Closed

Description

@learn-build-service-prod

Background

A recent product update has been released that may impact our documentation. This could include new features, changes to existing functionality, or other product enhancements.
Your Action Required: Please review the suggestions below and update the relevant documentation to ensure accuracy and completeness.

Signal Details:

Source Signal Summary

Details
  • .NET MAUI SwipeView / SwipeItemView, ListView.RefreshCommand, and Shell BackButtonBehavior command subscriptions no longer hold strong ICommand.CanExecuteChanged event handlers; they now route through the framework’s weak-subscription patterns (WeakCommandSubscription / CommandElement / ICommandElement) so long‑lived/custom ICommand implementations won’t keep these UI objects alive after they’re unloaded/eligible for GC (while IsEnabled/CanExecute behavior is intended to remain the same). (PR #36357, PR #36369, PR #36370)
  • .NET MAUI memory-retention fixes via weak event subscriptions and safer collection handling:
  • IndicatorView.ItemsSource no longer leaks when set to a long-lived INotifyCollectionChanged/ObservableCollection (uses WeakNotifyCollectionChangedProxy and a new ~IndicatorView finalizer to tear down subscriptions).
  • TableView/TableRoot no longer retain views via strong root/section collection/title change subscriptions (now weak subscriptions).
  • Shapes GeometryGroup uses weak subscriptions for CollectionChanged/PropertyChanged and now treats Children == null and null entries in Children as “empty” (skipped) rather than converting/throwing.
  • GradientBrush.GradientStops.Clear() (Reset with OldItems == null) now unsubscribes from previously attached GradientStop.PropertyChanged before resubscribing, preventing leaks/incorrect tracking when GradientStop instances are shared/duplicated (explicit handling for Add/Remove/Replace/Move/Reset). (PR #36252, PR #36513, PR #36526, PR #36746)
  • .NET MAUI (Android) safe-area/insets behavior updates:
  • Correctly respects SafeAreaEdges=None when the navigation bar is hidden by clearing stale top padding when collapsing the toolbar height (removes the blank “status bar height” gap).
  • RTL arrange mirroring now occurs within the parent’s padded content box (accounts for PaddingLeft/PaddingRight), preventing RTL content from shifting into cutout/safe-area regions after rotation.
  • During IME (soft keyboard) animations, a view that reattaches mid-animation can receive one valid inset dispatch immediately to establish initial padding (reducing the “first frame zero padding then jumps” issue).
  • The translated-view IME/safe-area “full-screen transition” heuristic now applies only when viewHeight >= screenHeight - top - bottom, preventing smaller translated controls (e.g., bottom sheets) from incorrectly retaining a top inset. (PR #36072, PR #36586, PR #37049, PR #38295)
  • .NET MAUI safe area behavior on iOS: safe-area invalidation now propagates to descendants (InvalidateSafeAreaWithDescendants), and safe-area “parent blocking” is resolved per edge (Left/Top/Right/Bottom) for both MauiView and MauiScrollView (including SystemAdjustedContentInset paths), changing how nested views/scroll views avoid double-applying insets and when layouts re-measure after safe-area edge/keyboard changes. (PR #38301)
  • .NET MAUI CollectionView (Items2/CV2) on iOS and Mac Catalyst no longer expands to fill available height/width when it has no items and no EmptyView; it now correctly measures/collapses to zero size (while still forcing a temporary layout pass when needed, e.g., pre-mount measurement or when the native UICollectionView frame is zero in the scroll direction after transitioning from empty to non-empty). Also on iOS (Items2), RefreshView pull-to-refresh now triggers even when CollectionView.EmptyView is displayed by keeping the EmptyView hosted inside the native UICollectionView (with RTL/LTR preserved via a compensating transform and flow-direction/alignment updates during layout). (PR #36127, PR #38296)
  • .NET MAUI grouped CollectionView behavior is now more consistent/stable:
  • With GridItemsLayout (Span > 1, nonzero VerticalItemSpacing/HorizontalItemSpacing), grouped rendering is aligned across platforms: Windows stretches item containers so the first item in the first group no longer collapses vertically, and iOS/Mac Catalyst applies grouped header/footer boundary spacing and InterSectionSpacing so a visible gap appears between a group header and the first row of items.
  • iOS grouped INotifyCollectionChanged.Remove updates are handled safely by deferring internal section reconciliation until after UICollectionView.DeleteSections.
  • Android no longer crashes (ArgumentOutOfRangeException) when removing items from a grouped CollectionView (adds adapter null checks and validates positions before applying SpacingItemDecoration offsets). (PR #36561, PR #36758, PR #38482)
  • Behavior change: .NET MAUI CollectionView/ItemsView “Items2/CollectionViewHandler2” implementation for Windows (including MauiItemsView template/resources and related selection/reorder behavior) was removed, and Windows handler registration no longer conditionally enables CollectionViewHandler2; docs that reference the Windows CollectionView2/Items2 handler (or related feature flags) should be revised to reflect the legacy Windows CollectionView behavior. (PR #38155)
  • .NET MAUI CarouselView / CollectionView handler fixes across platforms:
  • CarouselView now correctly enforces IsSwipeEnabled (Android touch handling returns false when disabled; iOS/Mac Catalyst re-applies swipe state to the embedded orthogonal UIScrollView on layout/subview-add so swipe can’t “come back”), and bounce is applied consistently so IsBounceEnabled is honored independently of IsSwipeEnabled (new iOS/Mac Catalyst MauiCollectionView.SetBounceEnabled logic). This introduced a public override Microsoft.Maui.Controls.Handlers.Items.MauiCollectionView.LayoutSubviews() for iOS/Mac Catalyst handler extensibility.
  • iOS/Mac Catalyst CarouselView.Position changes made while the handler is detached are preserved/restored on reattach (staying in sync with IndicatorView/bound Position), with teardown guards for pending iOS 26 scroll-debounce callbacks; and a newly set CurrentItem after ItemsSource replacement while detached is honored (avoids restoring a stale Position).
  • Android CarouselView ItemsSource Replace handling preserves CurrentItem/Position (especially when replacing the selected item); Loop="True" refreshes only visible virtual cells for the replaced index and adds edge-case handling for indexless/unequal-count Replace and teardown races.
  • Mac Catalyst-only: programmatic non-animated ScrollTo/ScrollToItem no longer has its scroll position silently clamped/reset after window state changes (adds KVO contentOffset restore), and introduces Mac Catalyst public overrides MauiCollectionView.Dispose(bool) and ItemsViewDelegator2<TItemsView,TViewController>.DraggingStarted(UIScrollView) to clear pending restores on user drag.
  • iOS/Mac Catalyst Editor and CarouselView now correctly re-apply IsEnabled changes to the outer native UIView by calling ViewHandler.MapIsEnabled (fixes controls remaining non-interactive after toggling IsEnabled off and back on). (PR #36428, PR #36287, PR #36681, PR #36243, PR #36431, PR #38480)
  • .NET MAUI FlexLayout:
  • Now measures children using constraints clamped to the child’s available arranged size (accounting for margins and engine-provided cross-axis w/h when fixed), fixing wrap/arrange mismatches where wrapped content (e.g., Label with LineBreakMode=WordWrap) could have its last line cut off.
  • On Windows/WinUI, detaching/recycling in virtualized templates no longer crashes: Layout(width,height) becomes a no-op when detached, CrossPlatformMeasure(...) returns Size.Zero, and GetFlexFrame(IView) returns Rect.Zero when the view isn’t tracked. (PR #36416, PR #36946)
  • .NET MAUI Button (iOS/Mac Catalyst):
  • Correctly refreshes CharacterSpacing styling when Button.Text changes (including with TextTransform and/or ContentLayout) by reapplying attributed-title updates after UpdateText.
  • Updating Button.TextColor at runtime now updates the rendered text color even when Button.CharacterSpacing is set (including resetting TextColor to null) by updating/removing the ForegroundColor attribute in the attributed title.
  • Button.ContentLayout (left/right image positioning with spacing) is now applied correctly under RTL (FlowDirection / EffectiveFlowDirection RightToLeft), fixing overlap/excessive separation while preserving configured spacing and positioning.
  • Initial render path: UpdateBackground no longer forces UIButton.BackgroundColor = UIColor.Clear when paint is null while Window == null, preserving native BackgroundColor set by custom UIButton subclasses until the button is attached to a window (after attachment, null paint still resets to clear for VisualState transitions). (PR #36326, PR #36699, PR #38339, PR #38301)
  • .NET MAUI Label.FormattedText / spans:
  • iOS/Mac Catalyst span hit-testing aligns Span TapGestureRecognizer hitboxes with rendered text for fonts with an OpenType STAT table (iOS 16+ disables NSLayoutManager.UsesFontLeading for span-rect calculation; hit-test layout prefers MAUI arrange finalSize over potentially-stale UILabel.Bounds).
  • iOS/Mac Catalyst formatted text now honors RTL flow direction (including inherited FlowDirection="MatchParent" via EffectiveFlowDirection), maps TextAlignment.Justify to UITextAlignment.Justified, and rebuilds formatted text when FlowDirection changes.
  • Windows formatted text updates now clear TextBlock.TextHighlighters when rebuilding inlines (prevents stale highlight/background ranges), and Windows FormattedString span positioning no longer risks an infinite loop/UI hang (guards against zero/negative line height during measurement when formatted text is set after being hidden/collapsed).
  • FormattedString no longer leaks when the same Span instance is shared/long-lived (weak per-occurrence subscriptions to Span.PropertyChanging/PropertyChanged). (PR #36564, PR #36277, PR #36608, PR #36828, PR #36294)
  • .NET MAUI Border on Windows:
  • Dashed borders now correctly apply StrokeLineCap by setting native Path.StrokeDashCap along with StrokeStartLineCap/StrokeEndLineCap.
  • Placing a SwipeView directly inside a Border no longer triggers a native crash; as a tradeoff, the Border stroke/path still renders but the SwipeView content will not be visually clipped to the Border’s corner shape in this scenario. (PR #36442, PR #36714)
  • .NET MAUI background clearing fixes:
  • Image and ImageButton on iOS/Mac Catalyst now map Background/BackgroundColor changes so setting Background to null clears the native background layer and native background color (also handles ImageSourcePaint backgrounds and re-applies IView.Opacity after container changes).
  • DatePicker and TimePicker on iOS/Mac Catalyst now correctly clear a previously applied background when Background is set to null/empty (explicit IDatePicker.Background / ITimePicker.Background mapping).
  • Image on Windows (WinUI): changing Image.BackgroundColor / IImage.Background via data binding after navigating away (when the initial value was null) no longer crashes with a COMException; background container creation is deferred until the native image is Loaded. (PR #36427, PR #36934, PR #36747)
  • .NET MAUI Entry behavior changes:
  • Windows: Entry.Completed no longer fires when the user presses Enter to confirm a Chinese/Japanese IME candidate (now requires an actual Enter KeyDown + KeyUp sequence).
  • iOS/Mac Catalyst: built-in clear button (✕) renders at full opacity when ClearButtonVisibility is enabled and TextColor is set (tint matches TextColor instead of appearing dim).
  • iOS and Windows: Keyboard="Password" no longer forces password masking; Entry.IsPassword is respected (including IsPassword=false on initial load and when toggled at runtime).
  • Android accessibility: SemanticProperties.Description is now always surfaced as Android ContentDescription for Entry/EditText (so Appium/UIAutomator content-desc is populated) while preserving the existing TalkBack-oriented synthesized accessibility text behavior.
  • Android: Keyboard="Numeric" once again accepts the device/OS locale decimal separator. (PR #36577, PR #36472, PR #36677, PR #37276, PR #38483)
  • .NET MAUI ContentPage.HideSoftInputOnTapped on Android/iOS no longer “sticks” globally across navigation: tap-to-dismiss keyboard is now enabled only for the currently focused view’s enclosing ContentPage (instead of any previously visited page that had HideSoftInputOnTapped="True" but never raised NavigatedFrom, e.g., when a ShellContent is hidden via IsVisible=false and you navigate with an absolute Shell.GoToAsync("///route")). (PR #36238)
  • .NET MAUI Shell search: SearchHandler.ShowsResults now updates at runtime across Android, iOS/Mac Catalyst, and Windows (toggling immediately hides/shows results UI and keeps results data synchronized), and on Windows SearchHandler font styling (FontSize, FontFamily, FontAttributes) is now applied and reacts to changes instead of being silently ignored. (PR #36215, PR #36700, PR #37393)
  • In .NET MAUI Shell on Android, the default flyout menu item Label.TextColor is now applied directly to the label at the lowest SetterSpecificity (instead of via the Default_FlyoutItemLabelStyle class at StyleLocal specificity), so developer-provided Label styling (implicit Style TargetType="Label" and explicit/class styles) can override flyout item text color; default Material color still applies when no user style is set. (PR #36616, PR #37393)
  • .NET MAUI Shell on Windows:
  • ShellContent.Title changes now update the parent ShellItem title at runtime, including when ShellContent is dynamically added/removed.
  • Calling Shell.Items.Clear() and then navigating to a new root now disconnects handlers for pages in the removed ShellSection navigation stack, preventing leaked native resources/handlers from remaining connected. (PR #35998, PR #36872)
  • .NET MAUI navigation/back handling: Microsoft.Maui.Controls.Window now treats any app/third-party override of Page.OnBackButtonPressed() as requiring delivery of the back press (via new internal Page.HasBackButtonPressedOverride detection), so custom pages/containers reliably receive the back-button event and the platform “back-to-home” animation is only used when the page is using framework back behavior. (PR #38301)
  • .NET MAUI WebView / BlazorWebView behavior changes across platforms:
  • iOS/Mac Catalyst: loading HtmlWebViewSource now uses WKWebView.LoadSimulatedRequest on iOS 15+ / Mac Catalyst 15+ so HTML loads create a back/forward history entry (GoBack()/GoForward() work after loading HTML); older OS versions still use LoadHtmlString (note: navigation events/WKWebView.Url reflect only the base URL rather than the HTML contents).
  • Android: WebView settings MinimumFontSize and MinimumLogicalFontSize are explicitly set to 1, so CSS font-size values below 8px are no longer silently clamped up by the Android WebView default (affects MAUI WebView and BlazorWebView).
  • Windows (WebView2): local https://appdir/ virtual-host mapping is tightened (must be absolute https, no userinfo, host exactly appdir) and mapping access changes to DenyCors, which blocks cross-origin fetch/XHR to https://appdir/... from LoadHtml/NavigateToString (null-origin) content; navigation to non-appdir hosts more reliably clears the mapping.
  • Android (BlazorWebView): Blazor startup script initialization is idempotent (window.__BlazorStarting), captures the native WebMessagePort before calling Blazor.start(), changes dispatch so only native PostWebMessage messages are processed (event.source === null), and adds a debug event BlazorStartupScriptsSubmitted.
  • Android (BlazorWebView): when UrlLoadingStrategy.OpenExternally is used, intent:// and android-app:// URIs are converted to a browsable implicit Intent (adds CATEGORY_BROWSABLE, clears explicit component/selector, and masks flags) before StartActivity.
  • Tizen (BlazorWebView): TizenMauiAssetFileProvider now uses FileSystemUtils.Combine and returns NotFoundDirectoryContents / NotFoundFileInfo when the combined path can’t be safely resolved (invalid/unsafe asset paths are treated as “not found”). (PR #33183, PR #36559, PR #36603, PR #35053, PR #38126, PR #37972, PR #37393)
  • Breaking: .NET MAUI HybridWebView JavaScript ↔ .NET messaging now validates the message origin on Windows (WebView2) and iOS (WKWebView); web messages are ignored (with a debug log) unless the message Source/frame URL is an absolute URI under the handler’s AppOriginUri. HybridWebView is also gated by $(MauiHybridWebViewSupported)/Microsoft.Maui.RuntimeFeature.IsHybridWebViewSupported (handlers/task manager are only registered when supported), and JS-to-.NET invocation remains the dynamic/reflection-based path via SetInvokeJavaScriptTarget<T>(T target) (annotated as trimming/dynamic-code unsafe), with updated error payload behavior on invoke failures. (PR #38126, PR #38155)
  • Breaking: .NET MAUI ScrollView on iOS/Mac Catalyst now uses content-coordinate scroll offsets consistently (ScrollX/ScrollY and ScrolledEventArgs use (0,0) as “content top-left aligned to visible viewport top-left”, not raw UIScrollView.ContentOffset), ScrollToAsync(...) is translated/clamped using AdjustedContentInset, inset-only changes refresh offsets without raising Scrolled, and Shell flyout scrolling (FlyoutHeaderBehavior.Scroll over a ScrollView) reads native UIScrollView.ContentOffset for header calculations to avoid incorrect positioning under the new convention. Additionally, element-based ScrollToAsync requests are now parked until the target is arranged (and dropped if they can never be satisfied), iOS safe-area compensation logic is normalized via UIKitCompensatesForSafeArea/SafeAreaBakedIntoContent, and the iOS/Mac handler now preserves/clamps UIScrollView.ContentOffset when the ScrollView is resized by its parent layout via a new ScrollViewHandler.PlatformArrange(Rect) override. (PR #37060, PR #37837, PR #38602, PR #37393)
  • .NET MAUI XAML C# expressions (XamlCSharpExpressions): expressions now support resolving type references via XAML xmlns prefixes (e.g., {ios:Page.GetUseSafeArea(this)}), and support attached bindable property reads using target.(Type.Property) syntax (including prefixed types like this.(ios:Page.UseSafeArea)), rewritten to Type.GetProperty(target); standalone (Type.Property) remains rejected/reserved, and ABP access is currently one-way only (no generated setter/change-notification support yet). The generator also tightens validation and diagnostics for expressions/bindings:
  • validates identifiers in interpolated-string bindings and reports MAUIX2009 (MemberNotFound) for missing members (including avoiding false “member not found” when the expression starts with a static type reference),
  • reports MAUIX2017 for lambda method-group references (e.g., Clicked="{(s,e) => this.OnCounterClicked}" missing ()),
  • reports MAUIX2015/MAUIX2016 for x:Code placement/requirements,
  • supports TwoWay setter generation for property paths that include struct intermediates via copy–modify–writeback, and warns with MAUIX2018 when a struct intermediate has no public setter (binding becomes effectively one-way). (PR #35093, PR #35006, PR #36787, PR #37393)
  • Breaking/behavior-only: .NET MAUI XAML build/runtime tooling changes:
  • XAML loading (XamlLoader / LoadFromXaml) now conditionally supports implicit xmlns injection—implicit default namespace + gathered prefixes are only applied when the app assembly opts in via Microsoft.Maui.Controls.Xaml.Internals.AllowImplicitXmlnsDeclarationAttribute; otherwise parsing switches to XmlReader Document conformance and does not auto-add implicit xmlns mappings.
  • OnPlatformExtension no longer supports publicly settable GTK, macOS, and WPF named arguments.
  • XamlCompilationAttribute / XamlCompilationOptions is now a compile-time error unless _MAUIXAML_SOURCEGEN_BACKCOMPAT is enabled; guidance moves to MSBuild MauiXaml item metadata (e.g., <MauiXaml Update="..." Inflator="XamlC" />).
  • XAML source generation removed the incremental XAML Hot Reload diagnostics/events surface, and compiled binding generation now reports missing bound properties as warnings and falls back to runtime reflection.
  • XAML inflator defaults are configuration-based again (Debug defaults to Runtime, non-Debug defaults to XamlC), with MauiXaml item Inflator="Default" support; templates now set <MauiXamlInflator>SourceGen</MauiXamlInflator> by default with per-file override guidance. (PR #38155)
  • .NET MAUI Resizetizer and related build tooling:
  • Resizetizer MSBuild pipeline for MauiFont and MauiSplashScreen now reliably produces packaged outputs on first build and during incremental builds: font item registration moved into an always-run _CollectMauiFontItems target; incremental tracking switched from stamp files to output manifests mauifont.outputs / mauisplash.outputs with pre-check readers; MauiInfo.plist (UIAppFonts) generation is de-duplicated and removed when the last MauiFont is deleted.
  • Breaking: documented Resizetizer resource metadata/features were simplified/removed (e.g., Android adaptive icon monochrome layer no longer supported; splash generation no longer emits dark-mode variants / iOS themed splash asset-catalog outputs; metadata such as DarkFile, DarkColor, DarkTintColor, ResizeQuality removed; “external backend” opt-in/extension workflow via ResizetizerPlatformType and ResizetizerAfter*ProcessingTargets removed).
  • Graphics/Resizetizer dependency set updates: SkiaSharp updated to SkiaSharp 4.150.1 (with corresponding Microsoft.Maui.Graphics.Skia/Resizetizer updates for SkiaSharp 4.x API removals), and SVG/tooling dependencies updated to Svg.Skia 5.1.1 (+ Svg.SceneGraph, Svg.Animation) and ExCSS 4.3.1. (PR #33919, PR #38155, PR #38301, PR #37393)
  • .NET MAUI SwipeView behavior updates:
  • SwipeItem.BackgroundColor values driven by AppThemeBinding now correctly refresh on light/dark theme changes (mapper key corrected so UpdateValue reaches MapBackground; iOS/Windows also re-update ITextStyle.TextColor when background changes).
  • Android accessibility: revealed SwipeItem / SwipeItemView commands can now be invoked via TalkBack (ACTION_CLICK executes the corresponding command and honors SwipeBehaviorOnInvoked, e.g., auto-closing unless RemainOpen).
  • Android swipe item measurement now uses width Exactly for default swipe items (to keep text visible) but height AtMost for all items (allow vertical self-sizing and centered icon+text), changing swipe action button sizing/layout vs the prior “width+height both Exactly for default items” behavior. (PR #36271, PR #37143, PR #38301)
  • .NET MAUI Switch handler/platform mapping now correctly restores the native/default thumb appearance when Switch.ThumbColor is set back to null (iOS clears UISwitch.ThumbTintColor; Android rebuilds/reapplies a theme-derived SwitchCompat.ThumbTintList including disabled-state color; Windows removes overridden ToggleSwitchKnobFill* resources and refreshes theme resources). (PR #36750)
  • .NET MAUI RadioButton on Android now correctly clears its rendered border when border-related properties are reset to defaults at runtime (StrokeColor=null, StrokeThickness=0, or CornerRadius=0), with StrokeThickness/CornerRadius clamped to >= 0 in platform mapping. (PR #37146)
  • .NET MAUI Essentials:
  • Android Permissions.RequestAsync<T>() now validates MainThread.IsMainThread before registering a pending permission request, preventing stale pending entries from poisoning later valid main-thread requests.
  • Android Screenshot.Default.CaptureAsync() no longer risks deadlocking when called synchronously from the UI thread (PixelCopy callback dispatched on a dedicated background HandlerThread and internal awaits use ConfigureAwait(false); failure off main thread returns null instead of attempting off-thread fallbacks). (PR #37056, PR #37680)
  • .NET MAUI Essentials MediaPicker / Android activity-result infrastructure:
  • Android Photo Picker path now requires the current activity to be a ComponentActivity (e.g., MauiAppCompatActivity) and to call Microsoft.Maui.ApplicationModel.Platform.Init(Activity, Bundle) in OnCreate; otherwise MediaPicker throws an InvalidOperationException with this guidance.
  • Android activity-result requests are now registered/tracked per ComponentActivity instance, persisted across recreation via saved instance state, and pending requests are canceled when the owning task/activity is destroyed (observable change for multi-activity apps).
  • iOS: picking multiple (2+) items no longer throws UIKitThreadAccessException (ensures PHPickerResult.ItemProvider is accessed on the main thread before any await). (PR #38301, PR #38481)
  • .NET MAUI (Windows/WinUI) stability/layout updates:
  • Layouts/panels with InputTransparent="True" and a non-null Background no longer lose their visible background (panel remains non-hit-testable while children still receive input).
  • ModalNavigationManager suppresses the title bar reservation when pushing modals in full-screen or when Window.TitleBar.IsVisible=false (fixes ~32px top “gap”/unclickable region) and listens for AppWindow.Presenter changes while a modal is displayed to dynamically update title bar visibility.
  • BorderHandler and ContentViewHandler now detach the platform view from any existing WinUI parent before reparenting, avoiding COM exceptions when rehosting views.
  • Handler mapper invocations guarded by CanInvokeMappers() are skipped after MauiContext.DisposeWindowScope() to prevent shutdown-time ObjectDisposedException (e.g., focus changes triggering style setters after window-scoped services are disposed). (PR #30311, PR #36209, PR #38301, PR #34354)
  • .NET MAUI iOS keyboard “Done” accessory behavior is version-split: on iOS 26+ it’s a pass-through container with a trailing floating glass close button (only the 44×44 button is hittable; transparent area passes through), while iOS < 26 keeps the full-width translucent UIToolbar Done accessory; iOS 26+ also positions the Liquid Glass close button 4 points higher, and an AppContext switch Microsoft.Maui.Platform.iOS.UseLegacyDoneAccessory (default-off) can force legacy toolbar behavior on iOS 26+ (must be set before creating MAUI controls). (PR #36413, PR #36756, PR #36776, PR #37393)
  • Breaking: on .NET MAUI iOS/Mac Catalyst lifecycle events, quick actions (iOSLifecycle.PerformActionForShortcutItem / UIApplicationShortcutItem) are now dispatched through both MauiUIApplicationDelegate and the scene lifecycle (MauiUISceneDelegate, including new public API MauiUISceneDelegate.PerformAction(UIWindowScene, UIApplicationShortcutItem, Action<bool>)); each registered handler receives its own completion callback and must invoke it exactly once (true if handled, false otherwise). Also on iOS/Mac Catalyst, Essentials now forwards scene-based URL/user-activity deliveries (iOSLifecycle.SceneOpenUrl / SceneContinueUserActivity) into WebAuthenticator.Default, and Essentials AppActions completion reports true only when AppActionActivated has subscribers (and invokes completion with false before rethrowing if the handler throws). (PR #38664)
  • Breaking: .NET MAUI app templates now generate iOS and Mac Catalyst app heads using UIKit’s scene-based lifecycle by default (adds UIApplicationSceneManifest to Info.plist, includes a SceneDelegate deriving from MauiUISceneDelegate, and sets UIApplicationSupportsMultipleScenes=false), and templates now set Mac Catalyst SupportedOSPlatformVersion to 17.0 (macOS 14). (PR #38664)
  • The .NET MAUI mobile project template (maui-mobile) updates generated pages for Android TalkBack accessibility by moving picker accessibility text from the non-interactive Syncfusion SfTextInputLayout wrapper to the interactive .NET MAUI Picker and switching to SemanticProperties.Hint on the Picker so TalkBack swipe navigation can reach/activate pickers and continue through content in logical order. (PR #38416)
  • .NET MAUI Picker (Android): restored native horizontal drag scrolling for long selected values while keeping EditText read-only and preventing drag from triggering taps/long-presses; implemented via a new Android-specific override Microsoft.Maui.Platform.MauiPickerBase.OnTouchEvent(MotionEvent? e) (listed in PublicAPI.Unshipped.txt), which can affect customization/subclassing guidance (call base.OnTouchEvent if overriding). (PR #37232)
  • .NET MAUI XAML diagnostics: Microsoft.Maui.Controls.Xaml.Diagnostics.BindingDiagnostics.BindingFailed is now backed by WeakEventManager instead of a normal multicast event, so subscribing pages/view-models are no longer kept alive if they forget to unsubscribe, but handlers/targets that are otherwise unreferenced can be garbage-collected and will stop receiving BindingFailed callbacks unless you keep a strong reference. (PR #37645)
  • .NET MAUI Microsoft.Maui.Controls.Resources behavior change: Application.Resources propagation now enumerates resource key/value pairs instead of keys-only, which may cause some resource values (including previously “lazy” resources) to be realized during propagation. (PR #38155)
  • .NET MAUI build/trimming: Microsoft.Maui.Controls (Controls.Core.csproj) is now marked IsTrimmable=false, changing expectations for trimming/AOT scenarios and requiring updates to trimming/AOT guidance for apps using Controls. (PR #38155)
  • .NET MAUI BindingSourceGen now generates shorter, stable hashed Roslyn hint names (and therefore shorter on-disk filenames when EmitCompilerGeneratedFiles is enabled), replacing the prior behavior that embedded the full source file path in the hint name; emitted generated .g.cs filenames now follow BindingSourceGen-<stableHash>-<line>-<column>.g.cs. (PR #35986)
  • The .NET MAUI official release workflow is now documented around eng/pipelines/ci-official-release.yml as the canonical release pipeline (replacing removed internal scripts), and it now also supports non-workload NuGet.org releases from an allowlisted GitHub repository using the existing ghOwner/ghRepo + commitHash inputs, with non-workload validation/auditing and stricter recovery semantics. (PR #36568, PR #37658)
  • The “maui-aspire-servicedefaults” (MauiAspire.ServiceDefaults.CSharp.8.0) dotnet new template updates its customer-visible template metadata/guidance to reflect current Aspire branding and updates outbound links (Service Defaults docs and third-party notices). (PR #37850)

Suggestions

Instructions for Copilot: Copilot should only fix suggestions with a checkmark and do not make any updates for unchecked suggestions.

Note

Suggestions are generated by AI and they should be reviewed by human before assigning it to Copilot. Please uncheck the ones you don't want Copilot to work on. Then assign this issue to Agent (GitHub Copilot).

  • docs/whats-new/dotnet-11.md:
    • [Correction Required] Update the “Windows CollectionView2 handler” section to remove/replace the claim that Windows uses the CollectionView2 handler by default and the guidance to set UseWindowsCollectionView2Handler to false to temporarily use the previous handler. Revise the section to reflect that the Windows CollectionView2/Items2 handler is no longer used/available and that Windows uses the legacy CollectionView behavior (and any referenced feature switch is no longer applicable). (PR #38155)
  • docs/user-interface/controls/collectionview/index.md:
    • [Correction Required] Update the "Windows CollectionView handler in .NET 11" section to remove/replace claims that Windows uses Microsoft.Maui.Controls.Handlers.Items2.CollectionViewHandler2 by default and that it is controlled by Microsoft.Maui.RuntimeFeature.IsWindowsCollectionView2HandlerEnabled / UseWindowsCollectionView2Handler. As written, users will follow the guidance and attempt to configure a handler/switch that no longer exists or has no effect, leading to broken customization/migration steps and an incorrect understanding of Windows CollectionView behavior. (PR #38155)
  • docs/user-interface/controls/shapes/index.md:
    • [Improvements] Update the “Control line ends” section (including the Important note that says StrokeLineCap has no effect on Ellipse/Rectangle) and the “Draw dashed shapes” section to reflect that while StrokeLineCap doesn’t affect the overall start/end of closed shapes, it does affect the end caps of individual dashes when a dashed stroke is used (StrokeDashArray/StrokeDashOffset). This prevents users from being misled into thinking StrokeLineCap can’t change dashed borders on closed shapes.
  • docs/user-interface/controls/hybridwebview.md:
    • [Improvements] Add an explicit platform behavior note to the JavaScript-to-.NET communication guidance (at minimum in the introduction that describes JS↔.NET communication, and in the 'Invoke C# from JavaScript' section) explaining that on Windows (WebView2) and iOS (WKWebView) incoming web messages are validated and ignored unless the message Source/frame URL is an absolute URI under the handler’s AppOriginUri. This must clarify that messages from iframes or navigations to other origins won’t reach .NET on those platforms unless they are within AppOriginUri, because otherwise users will experience broken JS-to-.NET messaging when hosting multi-origin content. (PR #38126, PR #38155)
  • docs/fundamentals/data-binding/compiled-bindings.md:
    • [Improvements] Update the "Compiled bindings in XAML" explanation of generated code for OneWay/TwoWay to explicitly call out how TwoWay setter generation behaves when the binding path includes struct intermediate properties (copy–modify–writeback), and that TwoWay requires write-back capability through the full path (for struct intermediates, a public setter is required on the intermediate property), otherwise the binding cannot propagate changes back as TwoWay. (PR #35093, PR #35006, PR #36787, PR #37393)
    • [Improvements] Update the "XAML compiled bindings warnings" section (table/list of warning codes) to include MAUIX2018 and describe what it means (struct intermediate in a TwoWay binding path has no public setter so the binding is effectively one-way) and what must change to resolve it (make the intermediate settable / adjust the model type / change binding mode as appropriate). This is required so users encountering MAUIX2018 can resolve builds/workflows that treat warnings as errors and understand why their TwoWay binding doesn’t update the source. (PR #35093, PR #35006, PR #36787, PR #37393)
  • docs/whats-new/dotnet-10.md:
    • [Improvements] In the “XAML” > “Implicit and Global XML namespaces” section (including the “Implicit default namespace (opt-in)” row and the “.NET 10 Preview 5 plus opt-in” example), update the description of how implicit xmlns injection works so it no longer reads as unconditional once enabled, and instead reflects that implicit injection is conditional on the app assembly opting in via Microsoft.Maui.Controls.Xaml.Internals.AllowImplicitXmlnsDeclarationAttribute; otherwise implicit xmlns mappings are not auto-added.
    • [Improvements] In the “How to adopt” steps for implicit default namespaces, add the required opt-in mechanism for the app assembly (AllowImplicitXmlnsDeclarationAttribute), or explicitly state that the shown project settings/defines must result in that attribute being applied; otherwise users who remove root xmlns/xmlns:x (as shown) can hit XAML parsing/load failures (notably when using XamlLoader / LoadFromXaml).
  • docs/xaml/fundamentals/get-started.md:
    • [Correction Required] Update the statements and guidance about “Implicit namespace declarations” to reflect that implicit xmlns injection during XAML loading (XamlLoader/LoadFromXaml) is conditional and requires assembly opt-in via Microsoft.Maui.Controls.Xaml.Internals.AllowImplicitXmlnsDeclarationAttribute; otherwise users must keep explicit xmlns declarations. Affected areas include: (1) the note in “Anatomy of a XAML file” that says the two standard xmlns declarations are implicit and can be omitted, (2) the “Implicit namespace declarations” section that claims “no opt-in is required”, and (3) the project-file opt-in snippet for the “most streamlined experience”, which is currently incomplete/misleading for runtime loading and can lead to broken XAML parsing when xmlns declarations are omitted.
  • docs/xaml/runtime-load.md:
    • [Correction Required] In the "Load XAML at runtime" section, update the simple usage example that uses string navigationButtonXAML = "<Button Text=\"Navigate\" />"; so it no longer depends on implicit xmlns injection (for example, by including the required MAUI xmlns declarations in the XAML string), because it will fail by default unless the app opts in to implicit xmlns injection.
    • [Improvements] In the "Load XAML at runtime" section (near the first examples/usage guidance), add the required condition for implicit xmlns behavior: explain that omitting xmlns declarations only works when the app assembly opts in via Microsoft.Maui.Controls.Xaml.Internals.AllowImplicitXmlnsDeclarationAttribute; otherwise runtime-loaded XAML must include explicit xmlns mappings (including the default MAUI namespace and any needed prefixes) to parse successfully.
  • docs/xaml/xamlc.md:
    • [Correction Required] Update the “XAML Compilation” section to remove/replace the statement that XAML compilation behavior can be overridden with XamlCompilationAttribute (and any implication that the attribute is a supported override mechanism by default). Replace this guidance with the supported MSBuild configuration approach (for example, using MauiXaml item metadata such as Inflator="XamlC" | "Runtime" | "SourceGen", and/or project-level MauiXamlInflator). This prevents users from following the page and encountering a compile-time error.
    • [Improvements] In sections that discuss enabling/disabling compilation per file (including “Enable Source Generation, and per file settings”), ensure the doc consistently directs users to MSBuild MauiXaml item metadata for per-file control, and does not suggest [XamlCompilation] as a viable alternative for non-sourcegen scenarios. Without this change, users may still attempt to use the attribute for per-file overrides and fail to build.
    • [Improvements] Where the page mentions [XamlCompilation] (for example, “We no longer recommend using [XamlCompilation] attribute…”), add the required condition that the attribute now produces a compile-time error unless _MAUIXAML_SOURCEGEN_BACKCOMPAT is enabled, so users understand why attribute-based configuration no longer works by default and what (if anything) would be required to keep legacy projects compiling.
  • docs/fundamentals/data-binding/compiled-bindings.md:
    • [Correction Required] Update the claims that invalid compiled binding expressions are reported as build errors to reflect the new behavior where missing bound properties are reported as warnings and the binding falls back to runtime reflection. Affected areas include the introductory section (problem statement Enable PDF Generation & PR Preview #1 / compile-time validation) and the "Compiled bindings in XAML" explanation paragraph that currently says invalid binding expressions are reported as build errors (and discusses only the first invalid binding causing a build error).
    • [Correction Required] In the "Use compiled bindings in XAML" example narrative, replace the statement that changing a binding to a non-existent viewmodel property "will result in a build error" with the correct outcome (a warning and a fallback to runtime/reflection-based binding), so users aren’t led to expect the build to fail as a validation mechanism.
    • [Improvements] Adjust the guidance around compiled bindings being required for NativeAOT/full trimming (the "Important" callout near the top) to avoid implying that missing binding paths will necessarily be stopped by build errors. It must indicate that missing bound properties can compile with warnings and fall back to reflection-based binding resolution, which can invalidate the expectation that compiled bindings fully protect against runtime binding issues in trimmed/NativeAOT apps.
  • docs/xaml/fundamentals/get-started.md:
    • [Correction Required] In the “XAML Source Generation” section’s per-file opt-out guidance (the paragraph that says: “If you want to opt-out… unset (or set to "") the Inflator…”), correct it to use the now-supported per-file Inflator="Default" approach (and/or equivalent explicit defaulting guidance) to return a file/pattern to the configuration-based defaults. As written, users on templates where the project default is SourceGen cannot reliably opt out specific files by unsetting/emptying Inflator, leading to incorrect behavior relative to the documented goal. (PR #38155)
    • [Improvements] In the “XAML Source Generation” section (including the “Important” callout and the project-file enablement instructions), update the description that the feature is “opt-in” so it reflects that recent templates set <MauiXamlInflator>SourceGen</MauiXamlInflator> by default. Otherwise, a reasonable user starting from a new template will be misled about what their project is already using by default. (PR #38155)
    • [Improvements] Where the article describes the ‘correct defaults’ for inflation (currently phrased as “runtime inflation on Debug, XamlC on Release”), adjust it in the “XAML Source Generation” section to match the restored rule “Debug = Runtime, non-Debug = XamlC”. Otherwise, users using non-Release configurations (for example, custom non-Debug configs) may form an incorrect understanding of which inflator will be used. (PR #38155)
  • docs/xaml/xamlc.md:
    • [Correction Required] Update the description of “default inflation” in the introduction and the “XAML Source Generation” / “Enable Source Generation, and per file settings” sections to reflect that, while configuration-based defaults remain (Debug => Runtime, non-Debug/Release => XamlC) when using Default, current templates set <MauiXamlInflator>SourceGen</MauiXamlInflator> so new projects will use SourceGen unless the project or file inflator is explicitly set back to Default/other. Remove/adjust the statement implying SourceGen will only become the default for new projects in the future, since it is already the template default now. (PR #38155)
  • docs/xaml/runtime-load.md:
    • [Improvements] Update the introductory explanation and generated InitializeComponent example (the paragraphs that state LoadFromXaml is indirectly called and show the generated method) to make it conditional on the selected XAML inflator (Runtime/XamlC vs SourceGen), since templates now default to SourceGen and may not call LoadFromXaml. Also update the project/per-file configuration guidance (the MauiXamlInflator and MauiXaml Update examples and the opt-out paragraph describing defaults) to reflect that configuration-based defaults are used again and that per-file return-to-default behavior should use the supported Inflator="Default" approach rather than relying on setting Inflator to an empty string. (PR #38155)
  • docs/whats-new/dotnet-11.md:
    • [Correction Required] Update the following sections to remove or replace claims and examples that rely on removed Resizetizer features/metadata so they no longer instruct users to use unsupported item metadata or expect outputs that are no longer generated: (1) "MonochromeFile for Android adaptive icons" (MonochromeFile / monochrome layer support), (2) "Themed splash screens" (DarkFile, DarkColor, DarkTintColor and statements about dark-mode variant generation and iOS/asset-catalog themed outputs), and (3) "Image resize quality" (ResizeQuality metadata and any statements about controlling resampling via this metadata).
  • docs/platform-integration/device-media/screenshot.md:
    • [Correction Required] Update the code example in the "Capture a screenshot" section to handle a possible null return from Screenshot.Default.CaptureAsync() (for example, by checking the returned IScreenshotResult for null before calling OpenReadAsync()), otherwise the sample can fail at runtime when CaptureAsync() returns null off the UI thread. (PR #37056, PR #37680)
    • [Improvements] In the "Capture a screenshot" section, refine the description of CaptureAsync() to reflect that the call must be made on the main (UI) thread on Android and that, if invoked off the UI thread / capture fails, the result may be null (rather than always producing an IScreenshotResult). This prevents users from forming an incorrect understanding that CaptureAsync() always succeeds from any thread and always returns a non-null result. (PR #37056, PR #37680)
  • docs/migration/native-essentials.md:
    • [Correction Required] Update the Android guidance and code in the Initialize the platform section so the sample Activity derives from a ComponentActivity (for example, MauiAppCompatActivity / AndroidX Activity base) rather than Android.App.Activity, because MediaPicker’s Android Photo Picker path now requires a ComponentActivity and otherwise fails at runtime with InvalidOperationException.
    • [Improvements] In Initialize the platform (and any other Android sections that describe initialization requirements, such as Perform additional setup where it discusses Activity lifecycle overrides), refine the initialization requirement to state that for MediaPicker/Photo Picker scenarios you must call Microsoft.Maui.ApplicationModel.Platform.Init(Activity, Bundle) from OnCreate of the launched Activity, and not rely on only the Platform.Init(Application) overload, to avoid MediaPicker failing due to missing current Activity initialization.
  • docs/platform-integration/device-media/picker.md:
    • [Improvements] Update the Android guidance in Get started (Android platform-specific setup) to include the requirement that the hosting/current activity for media picking must be a ComponentActivity (for example, MauiAppCompatActivity) and must call Microsoft.Maui.ApplicationModel.Platform.Init(Activity, Bundle) in OnCreate; otherwise MediaPicker can fail with InvalidOperationException when using the Android Photo Picker.
  • docs/supported-platforms.md:
    • [Correction Required] Update all macOS minimum-version statements for Mac Catalyst to align with the template’s Mac Catalyst SupportedOSPlatformVersion being 17.0 (macOS 14). This affects the macOS bullet under “.NET MAUI apps can be written for the following platforms” and every macOS bullet under the repeated “.NET MAUI Blazor apps have the following additional platform requirements” sections. Without this correction, users will reasonably expect macOS 11/12 support and then hit an unavoidable deployment/targeting mismatch when using the default template output. (PR #38664)
  • docs/platform-integration/native-embedding.md:
    • [Correction Required] In the “Enable .NET MAUI support” section (the Mac Catalyst-specific PropertyGroup examples that currently state a minimum of 14.0/14.2 and separately 15.0), update the documented minimum SupportedOSPlatformVersion requirement to 17.0 for Mac Catalyst and remove/replace the conflicting older minimum examples so users don’t set an OS version that causes build/targeting failures with current .NET MAUI templates. (PR #38664)
  • docs/fundamentals/app-lifecycle.md:
    • [Improvements] Update the iOS-related lifecycle guidance to reflect the default scene-based lifecycle in new templates. Specifically, revise the "Cross-platform lifecycle events" platform mapping table (iOS column) and the "iOS and Mac Catalyst" section (including the sample that uses AddiOS().OnActivated/OnResignActivation/DidEnterBackground/WillTerminate) to clarify that new template-based apps use UIScene/SceneDelegate lifecycle, and that users should use the Scene* lifecycle delegates (for example, SceneOnActivated/SceneOnResignActivation/SceneDidEnterBackground/SceneWillEnterForeground/SceneWillConnect) when targeting the default scene-based app head; otherwise, handlers wired to application-level callbacks may not be invoked. (PR #38664)
  • docs/deployment/trimming.md:
    • [Improvements] Update the "Trimming behavior" and "Trimming defaults" sections to explicitly reflect that Microsoft.Maui.Controls is not marked trimmable (IsTrimmable=false) and therefore will not be trimmed under partial trimming. This must adjust user expectations about what partial trimming affects in typical .NET MAUI apps that use Controls, avoiding the misunderstanding that Controls code will be trimmed by default. (PR #38155)
    • [Improvements] Update the "Trimming incompatibilities" and "Trimming feature switches" sections to clarify the practical impact of Microsoft.Maui.Controls being non-trimmable on full trimming and Native AOT scenarios (for example, that apps using Controls cannot assume the listed switches/incompatibility list is sufficient to make Controls-based apps trim/AOT safe). Without this, users can follow the article to enable full trimming/Native AOT and still end up with an app that fails at runtime or behaves incorrectly due to Controls not being trim-compatible. (PR #38155)
  • docs/ios/linking.md:
    • [Improvements] Update the “Linker behavior” section (especially the “Link SDK assemblies only” and “Link all assemblies” descriptions) to clarify that in current .NET MAUI versions Microsoft.Maui.Controls is not marked trimmable, so expectations that all SDK/Controls assemblies will be safely trimmed (and that aggressive linking will "just work") are not valid for Controls-based apps; this can otherwise lead users to enable an unsupported/aggressively-trimmed configuration and hit runtime failures. (PR #38155)
    • [Improvements] Add a required note in the trimming preservation guidance (“Preserve assemblies” / “Preserve assemblies, types, and members”) explaining that for Controls-based apps, Microsoft.Maui.Controls may need to be treated as non-trim-safe (for example, rooted/preserved) when enabling trimming/linking, otherwise users can encounter unavoidable missing-member issues at runtime despite following the page’s general trimming guidance. (PR #38155)
    • [Improvements] In “Mark an assembly as trim safe” (and the Native AOT paragraph in that section), refine the guidance to avoid implying that trimming/AOT compatibility can be achieved solely by marking user libraries as trimmable: explicitly call out that MAUI Controls itself is not marked trimmable, which affects whether Native AOT / aggressive trimming scenarios are supported/viable for apps using Controls, preventing users from following the doc into a broken AOT/trimming workflow. (PR #38155)
  • docs/mac-catalyst/linking.md:
    • [Improvements] Update the Linker behavior section (especially the descriptions of Link SDK assemblies only and Link all assemblies) to explicitly reflect that Microsoft.Maui.Controls is not marked trimmable (IsTrimmable=false), and therefore aggressive trimming/linking expectations differ for Controls-based apps (for example, users should not assume full trimming/linking is compatible without additional preservation/validation). This is required to prevent users from following the article to enable more aggressive linking and then encountering unavoidable trim-related breakage or misleading expectations for Controls apps. (PR #38155)
  • docs/android/linking.md:
    • [Correction Required] Update the "Linker behavior" section to reflect that not all .NET MAUI/SDK assemblies will be trimmed when trimming is enabled, and explicitly call out that Microsoft.Maui.Controls is now non-trimmable (IsTrimmable=false) so it will not have unused members removed by the trimmer. This is necessary to prevent users from forming incorrect expectations about trimming effectiveness and trimming/AOT behavior for typical MAUI apps that use Controls. (PR #38155)
  • docs/deployment/runtimes-compilation.md:
    • [Correction Required] Update the Trimming section to clarify that Release TrimMode=partial only trims assemblies that are marked trimmable, and that Microsoft.Maui.Controls is not trimmable (IsTrimmable=false) and therefore will not be trimmed even when trimming is enabled. This prevents users from being misled into expecting default trimming to reduce that framework component. (PR #38155)
    • [Improvements] Refine the NativeAOT (Native Ahead-of-Time) compilation description and the Comparison tables where they state/imply that NativeAOT performs full trimming and that "all code must be trim-safe" / produces smaller sizes, to account for the fact that Microsoft.Maui.Controls is now non-trimmable and may be excluded from trimming. Without this, users targeting NativeAOT or full trimming for MAUI UI apps can be misled about trimming behavior and size expectations. (PR #38155)

📚 To learn more about agentic content maintenance workflow, visit Agentic workflow for Learn content maintenance. Sign in using Learn Profile to access the content on this link.

💬 Share your feedback on the Learn Content Maintenance Agentic Workflow here.

Activity

  1. learn-build-service-prod commented on Oct 5, 2026

    @learn-build-service-prod
    ContributorAuthor

    The source content behind this signal has been updated, so this issue has been superseded by #3559 and is being closed automatically. No pull request was linked to it.

  2. added
    resolved-by-customer
    and removed
    ⌚ Not Triaged
    on Oct 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions