Repository navigation
[release/10.0.1xx-sr14] Prepare .NET 10 SR14 (10.0.140) with regression backports - #40217
Merged
kubaflo merged 3 commits intoNov 13, 2026
Merged
Conversation
…election events (#39887) <!-- Please let the below note in for people that find this PR --> > [!NOTE] > Are you waiting for the changes in this PR to be merged? > It would be very helpful if you could [test the resulting artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from this PR and let us know in a comment if this change resolves your issue. Thank you! <!-- !!!!!!! MAIN IS THE ONLY ACTIVE BRANCH. MAKE SURE THIS PR IS TARGETING MAIN. !!!!!!! --> ### Issue details When the initial page redirects to another implicit tab from its `NavigatedTo` handler, with the tab bar hidden, Shell can navigate back to the initial page unexpectedly. This invokes the initial page's `NavigatedTo` handler twice and leaves the application on the wrong route. ### Root cause WinUI can deliver an earlier `NavigationView.SelectionChanged` event after a reentrant navigation has already changed the selected tab. In the reproduced sequence, the event's `SelectedItem` still references GettingStartedPage, while the NavigationView's current `SelectedItem` and Shell route already reference SplashPage. `ShellItemHandler.OnNavigationTabChanged` previously processed that obsolete event as a new selection, navigating Shell back to GettingStartedPage. A controlled comparison on current main isolates the interaction with #38637, which avoids redundant `PaneDisplayMode` assignments to preserve the tab indicator animation. Reversing that optimization avoids the startup symptom but reintroduces the interrupted indicator behavior from #38422. This comparison is not a full historical commit bisect. ### Fix Ignore selection events when `args.SelectedItem` no longer matches `sender.SelectedItem` by reference. Events matching the live native selection continue through the existing navigation logic. The `PaneDisplayMode` optimization from #38637 remains unchanged, preserving the original animation fix rather than reverting it. ### Issues Fixed <!-- Please make sure that there is a bug logged for the issue being fixed. The bug should describe the problem and how to reproduce it. --> Fixes #39859 <!-- Are you targeting main? All PRs should target the main branch unless otherwise noted. --> Co-authored-by: Jakub Florkowski <42434498+kubaflo@users.noreply.github.com> (cherry picked from commit a547425)
(cherry picked from commit 815bab9, excluding the unrelated .NET 11 eng/release-rollover.json change) Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
kubaflo
temporarily deployed
to
copilot-pat-pool
November 13, 2026 12:14 — with
GitHub Actions
Inactive
Contributor
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 40217Or
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 40217" |
kubaflo
temporarily deployed
to
copilot-pat-pool
November 13, 2026 12:14 — with
GitHub Actions
Inactive
This comment has been minimized.
This comment has been minimized.
kubaflo
temporarily deployed
to
copilot-pat-pool
November 13, 2026 12:15 — with
GitHub Actions
Inactive
kubaflo
temporarily deployed
to
copilot-pat-pool
November 13, 2026 12:18 — with
GitHub Actions
Inactive
kubaflo
marked this pull request as ready for review
November 13, 2026 12:20
Contributor
Author
|
@dalexsoto stamp |
kubaflo
temporarily deployed
to
copilot-pat-pool
November 13, 2026 12:21 — with
GitHub Actions
Inactive
kubaflo
temporarily deployed
to
copilot-pat-pool
November 13, 2026 12:21 — with
GitHub Actions
Inactive
Contributor
There was a problem hiding this comment.
🔵 Needs a closer look
Windows build and device-test results are not supplied, leaving reentrant startup redirects and selection-indicator behavior dependent on unverified WinUI event ordering and animation timing.
No open issues 🎉
What changed in this PR
Prepares .NET MAUI 10 SR14 (10.0.140) by backporting two regression fixes onto the SR13-based release branch, preserving its stable servicing configuration.
Changes:
- Ignore stale Windows Shell tab-selection events to prevent duplicate startup navigation (#39859).
- Restore custom
IShape.PathForBoundsdispatch while preserving built-in stroke handling (#40129). - Add regression coverage and bump
PatchVersionfrom 130 to 140.
| File | Description |
|---|---|
src/Controls/tests/DeviceTests/Elements/Shell/ShellTabBarTests.Windows.cs |
Adds startup redirect and tab-indicator regression tests. |
src/Controls/tests/Core.UnitTests/StrokeShapeTests.cs |
Tests custom shape dispatch, Border usage, and stroke-context isolation. |
src/Controls/src/Core/Shapes/Shape.cs |
Dispatches through IShape, saving and restoring stroke context. |
src/Controls/src/Core/Handlers/Shell/ShellItemHandler.Windows.cs |
Rejects selection events that no longer match the native selection. |
eng/Versions.props |
Sets the SR14 patch version to 140. |
Review effort: Balanced
This was referenced Nov 13, 2026
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note
Are you waiting for the changes in this PR to be merged?
It would be very helpful if you could test the resulting artifacts from this PR and let us know in a comment if this change resolves your issue. Thank you!
Description of Change
Explicit release-target exception: this PR intentionally targets the new
release/10.0.1xx-sr14branch.main,net11and the inflight lanes are now .NET 11, so .NET 10 SR14 is cut from the SR13 release head (release/10.0.1xx-sr14was created at54d76458e0, the tip ofrelease/10.0.1xx-sr13, which already includes all post-cut SR13 fixes #39830, #39855, #39879, #39891 and the servicing/stable configuration from #39774).This PR brings the .NET 10 changes needed since SR13:
[Windows] Prevent duplicate Shell startup navigation from stale tab selection events. Fixes Shell Navigates to Initial page twice in Microsoft.Maui.Controls Version 10.0.120 #39859 (regressed in 10.0.120); it was merged only tomain. Cleancherry-pick -x.Fix custom Shape.PathForBounds dispatch regression. Fixes Shape.PathForBounds is no longer called for a custom Shape #40129 (regressed in 10.0.130); it was merged only tocandidate/11.0.1xx-sr2. The unrelated .NET 11eng/release-rollover.jsonchange from that commit is excluded (file does not exist on the .NET 10 line).PatchVersion130 → 140 ineng/Versions.props. Servicing label andStabilizePackageVersion=trueare inherited from SR13.Reviewed and intentionally not included:
net10.0Publish-Build-Assets cleanup): SR13 has noPublish-Build-Assetsreferences, so nothing to remove.[net10.0][XSG]CA2252 suppression, issue Build Error Using Implicit XAML Namespaces #40045): still open/unmerged; can be backported once approved.regressed-in-10.0.1x0issues closed since the SR13 cut ([MAUI] I1_RTL_FlowDirection - Rotating the iOS simulator causes the item layout to change #38622, Popups are no longer displayed in the center of the screen. #39557/Popup not centered after update of Microsoft.Maui.Controls 10.0.120 #39681, Microsoft.Maui.Controls 10.0.120 prevents Syncfusion charts rendering on Windows #39722) are already fixed on SR13 or were fixed outside MAUI.Keep in draft pending review and CI. This PR does not tag, publish, or authorize a release; the internal dnceng mirror of
release/10.0.1xx-sr14has not been created.Validation
Using the pinned SDK
10.0.113provisioned byeng/common/dotnet.sh:dotnet msbuild eng/Versions.props -getProperty:PatchVersion,SdkBandVersion,PreReleaseVersionLabel,StabilizePackageVersion,DotNetFinalVersionKind→140,10.0.100,servicing,true,release.xmllint --noout eng/Versions.propspassed.dotnet test src/Controls/tests/Core.UnitTests/Controls.Core.UnitTests.csproj -f net10.0 --filter FullyQualifiedName~StrokeShapeTests(platform TFMs disabled): passed 59/59. WithShape.csreverted to SR13: failed 3/59 (the newCustomShapeReimplementingIShape*tests); restored: passed 59/59.ShellItemHandler.Windows.cs+ Windows device test) and was not built locally on macOS; it relies on CI.Issues Fixed
Fixes #39859
Fixes #40129