Skip to content

[Forward fixes] net11 to main (manual) - #40576

Closed
kubaflo wants to merge 209 commits into
mainfrom
forward/net11-to-main-5a03607dade3
Closed

kubaflo wants to merge 209 commits into
mainfrom
forward/net11-to-main-5a03607dade3

Conversation

@kubaflo

@kubaflo kubaflo commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

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!

Target Branch

This PR is for Initial base
New features, API changes, or .NET 12 work (including .NET 12 fixes) main
.NET 11 servicing fixes net11, for review
Older servicing, release integration, infrastructure, or documentation The branch designated for that work

For .NET 11 fixes, only a maintainer retargets the approved PR to the active
inflight lane and merges it after CI validates that final base. Do not merge
individual fixes directly into net11; agents must not retarget or merge.

Description of Change

Manually forward the current net11 snapshot to main, including the SR2 candidate integration and subsequent changes.

  • Source: net11 at 5a03607dade32bb138c5fc81ac846bd8cfa9ec82.
  • Base when prepared: main at 59d49f94d2197216d1762cb219dbf00985f49802.
  • Both branches currently use .NET 11. This one-off PR is intentionally prepared before the automated forward workflow's .NET 12 gate; its disposable head does not automatically track later net11 changes.
  • The merge changes 638 files, updates the patch version from 11.0.20 to 11.0.30, and changes SDK and dependency versions. Review these changes and the full diff before merging.

Validation

  • git merge-tree --write-tree 59d49f94d2197216d1762cb219dbf00985f49802 5a03607dade32bb138c5fc81ac846bd8cfa9ec82 - passed without conflicts for these snapshots.
  • git diff --check 59d49f94d2197216d1762cb219dbf00985f49802 13922e44bde33060ca9cd744902855201b558b5a - reported four trailing-whitespace lines already present on net11.
  • Local build and tests were not run. Required review and CI must validate the integration before a maintainer merges it.

Issues Fixed

N/A - forward integration of changes already reviewed on net11.

kubaflo and others added 30 commits November 23, 2026 22:14
…path (APT2260) (#40406)

<!-- 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!

<!--
Open .NET 11 fix PRs against net11 for review; target main for
next-major features.
After approval, a maintainer manually retargets the fix PR to the active
inflight
branch and merges it directly there. Do not merge individual fixes into
net11.
Bots must not retarget or merge. Candidate integration into net11 and
release/*
changes are separate, explicitly coordinated release work.
-->

### Target Branch

| This PR is for | Initial base |
| --- | --- |
| New features, API changes, or .NET 12 work (including .NET 12 fixes) |
`main` |
| .NET 11 servicing fixes | `net11`, for review |
| Older servicing, release integration, infrastructure, or documentation
| The branch designated for that work |

- [x] I selected the applicable base branch using the [contribution
guide](https://github.com/dotnet/maui/blob/main/.github/CONTRIBUTING.md#choose-your-pr-base-before-starting).

For .NET 11 fixes, only a maintainer retargets the approved PR to the
active
inflight lane and merges it after CI validates that final base. Do not
merge
individual fixes directly into `net11`; agents must not retarget or
merge.

### Description of Change

Build infrastructure only; no product or test code changes.

**Symptom.** Windows `Pack` (and occasionally `Build`) jobs fail
intermittently with `APT2260` in `Controls.Xaml` `net11.0-android37.0`
`Aapt2Link`: `style attribute 'attr/colorPrimary' not found` and other
Material attributes. Recent examples are net11 maui-pr
[1688582](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1688582)
and candidate maui-pr
[1688577](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1688577).
There have been 6 Pack and 2 Build Windows failures since 15 Nov, across
branches.

**Root cause.** `eng/Build.props` restores
`Microsoft.Maui.BuildTasks.slnf` with `BuildTaskOnlyBuild=true` first,
then the full solution filter, in the same MSBuild process:
1. Under CI, `BuildTaskOnlyBuild=true` disables the all-TFM group in
`Directory.Build.props`. The first restore therefore writes a reduced
`artifacts/obj/<project>/<project>.csproj.nuget.g.props/targets`, with
import groups only for `netstandard2.0`, `netstandard2.1` and `net11.0`.
2. The full restore's evaluations parse those same files into the
in-process `ProjectRootElementCache`, then rewrite them with all TFMs.
3. That cache does not revalidate timestamps: it is created with
`autoReloadFromDisk: false`, keeps 200 strong MRU entries and holds the
rest weakly. Later build evaluations can reuse the stale reduced XML, so
platform TFMs lose their `buildTransitive` package imports, including
the Material `AndroidAarLibrary` items. That produces `APT2260`. Whether
the stale entry survives depends on cache eviction and GC, which is why
the failure is intermittent.

CI binlogs show this directly. In failing build 1688582, the build-phase
evaluations of `Controls.Xaml` (ios/android/windows), `Controls.Core`
(ios/windows) and `Graphics` (android/windows) have zero package imports
from the `nuget.g.targets`. Passing net11 build
[1687936](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1687936)
has the normal import counts. #39779 serialized the two restores
(`RestoreInParallel=false`) but they still shared these generated files.
#40206 worked around the same mechanism for `Controls.Core` with
explicit package references.

**Fix.** For the build-task restore only, `Directory.Build.props` sets
`MSBuildProjectExtensionsPath` to
`$(BaseIntermediateOutputPath)buildtasks\`, so that restore writes
`nuget.g.*`, `project.assets.json` and dgspec files under
`artifacts/obj/<project>/buildtasks/`. The full restore and build keep
the default `artifacts/obj/<project>/` path, and the full restore's
evaluations never read the reduced files. Arcade's `ProjectLayout.props`
sets only `BaseIntermediateOutputPath`, and `Microsoft.Common.props`
defaults `MSBuildProjectExtensionsPath` after importing
`Directory.Build.props`, so this is the supported place to set it.
Nothing in the repo reads these paths directly. Other
`BuildTaskOnlyBuild` callers (`eng/cake/dotnet.cake`,
`eng/pipelines/arcade/setup-test-env.yml`) restore before every later
build, so they also stop overwriting the full assets. The comment in
`eng/Build.props` is updated to match.

Rejected alternatives:
- `MSBUILDNOINPROCNODE=1`: pipeline-wide behaviour change.
- More explicit package references, as in #40206: a per-project
workaround that doesn't remove the shared state.
- Disabling project-extension imports: unsafe.

### Validation

All runs used SDK 11.0.100 with `dotnet msbuild -m:1 -nodeReuse:false`.

**Minimal standalone repro.** A local package with `build/net10.0`
targets, consumed by a library whose TFMs shrink from `net11.0;net10.0`
to `net11.0` under `BuildTaskOnlyBuild=true`. The driver runs the
reduced restore, then the full restore, then reads the package marker
for `net10.0`:

| Run | Result |
| --- | --- |
| Baseline | marker missing (red) |
| Fix | marker present (green) |
| Fix reverted | marker missing (red) |
| Fix restored | marker present (green) |
| Control: baseline with `MSBUILDNOINPROCNODE=1` | marker present
(green): the in-proc XML cache is the mechanism |

**Repo-level repro, in Arcade's order.** The driver runs a
`BuildTasks.slnf` restore with `BuildTaskOnlyBuild=true`, then a full
`Controls.Xaml` restore, then an evaluation of `Controls.Xaml`
`net11.0-android37.0` that counts `AndroidAarLibrary` items. All runs
used `CI=true -p:IncludeMacOSTargetFrameworks=false`.
`MSBUILDPROJECTROOTELEMENTCACHESIZE=100000` stops strong-cache eviction,
which makes the CI intermittency deterministic:

| Run | AndroidAarLibrary (all / Material) | Package imports in the
build-phase android evaluation |
| --- | --- | --- |
| Baseline | 0 / 0 (red) | 31: the stale reduced `nuget.g.targets` |
| Fix | 69 / 1 (green) | 133 |
| Fix reverted | 0 / 0 (red) | — |
| Fix restored | 69 / 1 (green) | — |

With default cache settings the baseline was green locally (69/1), which
is consistent with the eviction-dependent intermittency seen in CI.

**Other checks.**
- Evaluation with `BuildTaskOnlyBuild=true`:
`MSBuildProjectExtensionsPath`, `RestoreOutputPath` and
`ProjectAssetsFile` point at `artifacts/obj/Controls.Xaml/buildtasks/`.
Without it they stay at `artifacts/obj/Controls.Xaml/`.
- `CI=true dotnet build Microsoft.Maui.BuildTasks.slnf -c Debug
-p:BuildTaskOnlyBuild=true -p:IncludeMacOSTargetFrameworks=false`: build
succeeded, 0 warnings. All 12 restored projects wrote their assets under
`artifacts/obj/<project>/buildtasks/`.

The CI proof will be a Pack run's Windows binlog: the full restore's
evaluations should no longer import a normal-path `nuget.g.targets`
written by the build-task restore.

### Issues Fixed

Intermittent Windows Pack/Build `APT2260` failures in maui-pr. No issue
is filed; this was found while triaging #40116 CI.

Fixes #

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
)

<!-- 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!

<!--
Open .NET 11 fix PRs against net11 for review; target main for
next-major features.
After approval, a maintainer manually retargets the fix PR to the active
inflight
branch and merges it directly there. Do not merge individual fixes into
net11.
Bots must not retarget or merge. Candidate integration into net11 and
release/*
changes are separate, explicitly coordinated release work.
-->

### Target Branch

| This PR is for | Initial base |
| --- | --- |
| New features, API changes, or .NET 12 work (including .NET 12 fixes) |
`main` |
| .NET 11 servicing fixes | `net11`, for review |
| Older servicing, release integration, infrastructure, or documentation
| The branch designated for that work |

- [x] I selected the applicable base branch using the [contribution
guide](https://github.com/dotnet/maui/blob/main/.github/CONTRIBUTING.md#choose-your-pr-base-before-starting).

For .NET 11 fixes, only a maintainer retargets the approved PR to the
active
inflight lane and merges it after CI validates that final base. Do not
merge
individual fixes directly into `net11`; agents must not retarget or
merge.

### Description of Change

Test-only. On Android, `App.DismissKeyboard()` calls Appium's
`hideKeyboard`. That sends ESC, and if the IME is still reported as
shown about a second later, it also sends BACK. When the IME hide takes
longer than that, BACK closes the test page's `MainActivity` and the
launcher comes to the front. The next element lookup then throws a
`NullReferenceException` or times out.

This is the same mechanism as #40361 (Issue35119). There, BACK cancelled
a prompt.

The fix replaces the three Android `DismissKeyboard()` calls in
`Issue28986_ContentPage` (`SafeAreaPerEdgeValidation`,
`SafeAreaNoWhiteSpaceAfterKeyboardDismissAndEdgeToggle`) and
`Issue28986.SafeAreaPerEdgeValidation` with a helper:
- It waits for the keyboard to show.
- It sends only ESC, which the visible IME consumes.
- It asserts that the keyboard hides.

iOS still calls `DismissKeyboard()`. No assertions, tolerances or
baselines change. The keyboard tests in
`Issue28986_SafeAreaBorderOrientation` are excluded on Android
(`TEST_FAILS_ON_ANDROID`), so they are unchanged.

**CI evidence.** Candidate UI 1689104, SafeAreaEdges API36 (log 2836):
- The original attempt hit an NRE in `Tap("GridResetAllButton")` at line
156, right after `DismissKeyboard()` and a passing
`WaitForKeyboardToHide()`.
- Logcat shows ESC to Gboard, then the app's `onRequestHide`, then
`onHidden` after a stalled IME dump. Then a `Transition CLOSE` for the
app task brings the launcher to the front.
- The same NRE@156 signature appears in UI builds 1687709 and 1687330.

**Local causal validation.** Android 16 (API 36) emulator, `net11`
Material3 HostApp APK from UI build 1688901, filter
`Name=SafeAreaNoWhiteSpaceAfterKeyboardDismissAndEdgeToggle|Name=SafeAreaPerEdgeValidation`
(3 tests per run):

| Phase | Runs | Failed tests |
| --- | --- | --- |
| Baseline (`net11`) | 3 | 9/9 |
| Fixed | 3 | 1/9 |
| Fix reverted | 3 | 6/9 |
| Fix restored | 3 | 1/9 |

- Baseline failures match CI: NRE at `Issue28986_ContentPage.cs:156`
(4), timeout at line 105 (4), a failure at line 126 (1), and timeout in
`Issue28986.cs` at line 193 (6). Each comes after ESC, then `onHidden`,
then a mid-test `Transition CLOSE` of the uitests task. The app
relaunches only after the timeout.
- Both fixed-run failures are in
`Issue28986_ContentPage.SafeAreaPerEdgeValidation` at line 121. That is
the earlier "keyboard shown" assertion, before any hide. Logcat shows no
`onRequestShow` in those runs, so the keyboard was never requested. This
is a separate, pre-hide failure that this PR doesn't address.

### Issues Fixed

Fixes CI flakiness in
`Issue28986_ContentPage.SafeAreaNoWhiteSpaceAfterKeyboardDismissAndEdgeToggle`,
`Issue28986_ContentPage.SafeAreaPerEdgeValidation` and
`Issue28986.SafeAreaPerEdgeValidation` on Android.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
This pull request updates the following dependencies

[marker]: <> (Begin:fc4a0e63-cc9b-414d-9375-11dd045dcfa9)
## From https://github.com/dotnet/android
- **Subscription**:
[fc4a0e63-cc9b-414d-9375-11dd045dcfa9](https://maestro.dot.net/subscriptions?search=fc4a0e63-cc9b-414d-9375-11dd045dcfa9)
- **Build**:
[11.0.1xx-d644ae60c9c7cff27a9813663298c3aa642534a3-1](https://dev.azure.com/devdiv/DevDiv/_build/results?buildId=16070009)
([342149](https://maestro.dot.net/channel/8298/github:dotnet:android/build/342149))
- **Date Produced**: November 18, 2026 9:02:56 PM UTC
- **Commit**:
[d644ae60c9c7cff27a9813663298c3aa642534a3](dotnet/android@d644ae6)
- **Branch**:
[release/11.0.1xx](https://github.com/dotnet/android/tree/release/11.0.1xx)

[DependencyUpdate]: <> (Begin)

- **Dependency Updates**:
  - From [37.2.40 to 37.2.43][1]
     - Microsoft.Android.Sdk.Windows

[1]: dotnet/android@37b3691...d644ae6

[DependencyUpdate]: <> (End)


[marker]: <> (End:fc4a0e63-cc9b-414d-9375-11dd045dcfa9)



[marker]: <> (Begin:0340b3ac-0154-4d65-98b8-f534ebc24108)
## From https://github.com/dotnet/dotnet
- **Subscription**:
[0340b3ac-0154-4d65-98b8-f534ebc24108](https://maestro.dot.net/subscriptions?search=0340b3ac-0154-4d65-98b8-f534ebc24108)
- **Build**:
[20261117.5](https://dev.azure.com/dnceng/internal/_build/results?buildId=3138553)
([342028](https://maestro.dot.net/channel/8298/github:dotnet:dotnet/build/342028))
- **Date Produced**: November 18, 2026 7:22:18 AM UTC
- **Commit**:
[81e781b0429cbad5d1984bce95e451bba6aeab0e](dotnet/dotnet@81e781b)
- **Branch**:
[release/11.0.1xx](https://github.com/dotnet/dotnet/tree/release/11.0.1xx)

[DependencyUpdate]: <> (Begin)

- **Dependency Updates**:
  - From [11.0.1 to 11.0.1][2]
     - Microsoft.AspNetCore.Authentication.Facebook
     - Microsoft.AspNetCore.Authentication.Google
     - Microsoft.AspNetCore.Authentication.MicrosoftAccount
     - Microsoft.AspNetCore.Authorization
     - Microsoft.AspNetCore.Components
     - Microsoft.AspNetCore.Components.Analyzers
     - Microsoft.AspNetCore.Components.Forms
     - Microsoft.AspNetCore.Components.Web
     - Microsoft.AspNetCore.Components.WebAssembly
     - Microsoft.AspNetCore.Components.WebAssembly.Server
     - Microsoft.AspNetCore.Components.WebView
     - Microsoft.AspNetCore.Metadata
     - Microsoft.Extensions.Configuration
     - Microsoft.Extensions.Configuration.Abstractions
     - Microsoft.Extensions.Configuration.Json
     - Microsoft.Extensions.DependencyInjection
     - Microsoft.Extensions.DependencyInjection.Abstractions
     - Microsoft.Extensions.FileProviders.Abstractions
     - Microsoft.Extensions.Hosting.Abstractions
     - Microsoft.Extensions.Logging
     - Microsoft.Extensions.Logging.Abstractions
     - Microsoft.Extensions.Logging.Console
     - Microsoft.Extensions.Logging.Debug
     - Microsoft.Extensions.Primitives
     - Microsoft.JSInterop
     - Microsoft.NETCore.App.Ref
  - From [11.0.0-beta.26566.116 to 11.0.0-beta.26567.105][2]
     - Microsoft.DotNet.Arcade.Sdk
     - Microsoft.DotNet.Build.Tasks.Feed
     - Microsoft.DotNet.Build.Tasks.Installers
     - Microsoft.DotNet.Build.Tasks.Workloads
     - Microsoft.DotNet.Helix.JobMonitor
     - Microsoft.DotNet.Helix.Sdk
     - Microsoft.DotNet.RemoteExecutor
     - Microsoft.DotNet.SharedFramework.Sdk
     - Microsoft.DotNet.XUnitExtensions
- From [11.0.101-servicing.26566.116 to 11.0.101-servicing.26567.105][2]
     - Microsoft.NET.Sdk

[2]: dotnet/dotnet@f41eb11...81e781b

[DependencyUpdate]: <> (End)


[marker]: <> (End:0340b3ac-0154-4d65-98b8-f534ebc24108)

---------

Co-authored-by: Jakub Florkowski <kubaflo123@gmail.com>
…r/DragLeave (#40441)

<!-- 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!

<!--
Open .NET 11 fix PRs against net11 for review; target main for
next-major features.
After approval, a maintainer manually retargets the fix PR to the active
inflight
branch and merges it directly there. Do not merge individual fixes into
net11.
Bots must not retarget or merge. Candidate integration into net11 and
release/*
changes are separate, explicitly coordinated release work.
-->

### Target Branch

| This PR is for | Initial base |
| --- | --- |
| New features, API changes, or .NET 12 work (including .NET 12 fixes) |
`main` |
| .NET 11 servicing fixes | `net11`, for review |
| Older servicing, release integration, infrastructure, or documentation
| The branch designated for that work |

- [x] I selected the applicable base branch using the [contribution
guide](https://github.com/dotnet/maui/blob/main/.github/CONTRIBUTING.md#choose-your-pr-base-before-starting).

For .NET 11 fixes, only a maintainer retargets the approved PR to the
active
inflight lane and merges it after CI validates that final base. Do not
merge
individual fixes directly into `net11`; agents must not retarget or
merge.

### Description of Change

On iOS, `DragEventArgs.GetPosition()` can throw a
`NullReferenceException` inside a `DragOver` or `DragLeave` handler. The
exception crashes the app.

**CI evidence.** The `DropEventCoordinates` UI test crashed the HostApp
on both attempts on the iOS CoreCLR lane of SR2 candidate #40116
(maui-pr-uitests
[1690394](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1690394),
iOS latest Editor..Fr job). The job's `.ips` reports show SIGABRT from
`xamarin_process_managed_exception` under `-[UIDropInteraction
_dragDestinationGestureStateChanged:]`. The logarchive shows the managed
exception:

```
System.NullReferenceException
  at DragAndDropDelegate.CalculatePosition(IElement, WeakReference, WeakReference)
  at DragAndDropBetweenLayouts.OnDragOver(...)        // HostApp calls e.GetPosition(...)
  at DragAndDropDelegate.<HandleDragOver>...
  at DragAndDropDelegate.SendEventArgs(...)
  at DragAndDropDelegate.HandleDragOver(...)
  at DragAndDropDelegate.SessionDidUpdate(...)
```

**Root cause.**
- `SessionDidUpdate` and `SessionDidExit` pass
`session.LocalDragSession`, a transient managed wrapper of the native
local drag session, into `HandleDragOver` and `HandleDragLeave`.
- Those methods put only a `WeakReference` to it in the `GetPosition`
callback, and nothing else on the path keeps it alive:
`PlatformDragEventArgs` holds the outer `IUIDropSession`, not the local
drag session.
- A GC while the user's handler is running can therefore collect the
wrapper. `CalculatePosition` then calls `LocationInView` on a null
session.
- Separately, `HandleDragOver` built a weak reference even when
`LocalDragSession` is null (a drag from another app), so `GetPosition`
always threw in that case. `HandleDragLeave` and `HandleDrop` already
return null there.

The weak references date from 2023, and the code is identical on
`net11`, the candidate and `main`. This is a latent bug that the CoreCLR
lane's GC timing exposed, not a candidate regression.

**Fix** (`DragAndDropDelegate.cs`, iOS/Mac Catalyst):
- `HandleDragOver` and `HandleDragLeave` call `GC.KeepAlive(session)`
after dispatching to the recognizers. The session stays alive while
handlers can synchronously call `GetPosition`, and the event args still
don't hold it strongly.
- `HandleDragOver` uses a null `sessionRef` when there is no local drag
session, matching `HandleDragLeave` and `HandleDrop`.
- `CalculatePosition` returns `null` when the session reference is
missing or its target has already been collected, instead of
dereferencing null. This covers a `GetPosition` call made after the
handler returns.

**Tests** (`DragAndDropTests.iOS.cs`, `Gesture` category):
- `DragPositionIsAvailableAfterGarbageCollectionDuringHandler(dragLeave:
false/true)`: a fake drop session returns a fresh local drag session
wrapper each time, the handler forces a full GC and then calls
`GetPosition`, and the test asserts the fake session's location.
- `DragOverPositionIsNullWithoutLocalDragSession`: with no local drag
session, `GetPosition` in `DragOver` returns `null`.

**Validation** (iOS 18.5 simulator, Release, CoreCLR, the same runtime
as the failing CI lane):

| Command | Result |
| --- | --- |
| `pwsh .github/skills/run-device-tests/scripts/Run-DeviceTests.ps1
-Project Controls -Platform ios -TestFilter "Category=Gesture"
-DeviceUdid <iOS 18.5 sim> -SkipXcodeVersionCheck` with only the new
tests (no fix) | **Failed**: 45 passed, 3 failed. All three new cases
throw `NullReferenceException` at
`DragAndDropDelegate.CalculatePosition`, the same frame as the CI crash.
|
| Same command with the fix | **Passed**: 48 passed, 0 failed |
| `dotnet format whitespace --folder --include <changed files>
--verify-no-changes` | Passed |

The UI test itself was not rerun locally, because its crash depends on
when a GC happens.

### Issues Fixed

No existing issue; found while investigating SR2 candidate #40116 CI.
Searched for related issues and PRs and found no duplicate.
#28416/#28417 is an unrelated Mac Catalyst `DragAndDropDelegate` NRE.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
)

This pull request updates the following dependencies

[marker]: <> (Begin:f4928934-9e75-4ba7-b3d0-757a5edf906c)
- **Subscription**:
[f4928934-9e75-4ba7-b3d0-757a5edf906c](https://maestro.dot.net/subscriptions?search=f4928934-9e75-4ba7-b3d0-757a5edf906c)
- **Build**:
[20261109.6](https://dev.azure.com/dnceng/internal/_build/results?buildId=3130547)
([340580](https://maestro.dot.net/channel/8298/github:dotnet:dotnet/build/340580))
- **Date Produced**: November 10, 2026 12:07:03 AM UTC
- **Commit**:
[40ce56ee174a4f1914ef78ea848f3198a160e815](dotnet/dotnet@40ce56e)
- **Branch**:
[release/11.0.1xx](https://github.com/dotnet/dotnet/tree/release/11.0.1xx)

[DependencyUpdate]: <> (Begin)

- **Dependency Updates**:
  - From [11.0.0 to 11.0.1][1]
     - Microsoft.AspNetCore.Authentication.Facebook
     - Microsoft.AspNetCore.Authentication.Google
     - Microsoft.AspNetCore.Authentication.MicrosoftAccount
     - Microsoft.AspNetCore.Authorization
     - Microsoft.AspNetCore.Components
     - Microsoft.AspNetCore.Components.Analyzers
     - Microsoft.AspNetCore.Components.Forms
     - Microsoft.AspNetCore.Components.Web
     - Microsoft.AspNetCore.Components.WebAssembly
     - Microsoft.AspNetCore.Components.WebAssembly.Server
     - Microsoft.AspNetCore.Components.WebView
     - Microsoft.AspNetCore.Metadata
     - Microsoft.Extensions.Configuration
     - Microsoft.Extensions.Configuration.Abstractions
     - Microsoft.Extensions.Configuration.Json
     - Microsoft.Extensions.DependencyInjection
     - Microsoft.Extensions.DependencyInjection.Abstractions
     - Microsoft.Extensions.FileProviders.Abstractions
     - Microsoft.Extensions.Hosting.Abstractions
     - Microsoft.Extensions.Logging
     - Microsoft.Extensions.Logging.Abstractions
     - Microsoft.Extensions.Logging.Console
     - Microsoft.Extensions.Logging.Debug
     - Microsoft.Extensions.Primitives
     - Microsoft.JSInterop
     - Microsoft.NETCore.App.Ref
  - From [11.0.0-beta.26555.108 to 11.0.0-beta.26559.106][1]
     - Microsoft.DotNet.Arcade.Sdk
     - Microsoft.DotNet.Build.Tasks.Feed
     - Microsoft.DotNet.Build.Tasks.Installers
     - Microsoft.DotNet.Build.Tasks.Workloads
     - Microsoft.DotNet.Helix.JobMonitor
     - Microsoft.DotNet.Helix.Sdk
     - Microsoft.DotNet.RemoteExecutor
     - Microsoft.DotNet.SharedFramework.Sdk
     - Microsoft.DotNet.XUnitExtensions
  - From [11.0.100-rtm.26555.108 to 11.0.101-servicing.26559.106][1]
     - Microsoft.NET.Sdk

[1]: dotnet/dotnet@1f64ef4...40ce56e

[DependencyUpdate]: <> (End)

[marker]: <> (End:f4928934-9e75-4ba7-b3d0-757a5edf906c)

[marker]: <> (Begin:9a046932-c60c-436e-8fc7-8ea2f5902cb5)
- **Subscription**:
[9a046932-c60c-436e-8fc7-8ea2f5902cb5](https://maestro.dot.net/subscriptions?search=9a046932-c60c-436e-8fc7-8ea2f5902cb5)
- **Build**:
[11.0.1xx-7ff9886196157cc5aea76f227cbf06329629cf6c-1](https://dev.azure.com/devdiv/DevDiv/_build/results?buildId=15967460)
([340520](https://maestro.dot.net/channel/8298/github:dotnet:android/build/340520))
- **Date Produced**: November 9, 2026 7:08:35 PM UTC
- **Commit**:
[7ff9886196157cc5aea76f227cbf06329629cf6c](dotnet/android@7ff9886)
- **Branch**:
[release/11.0.1xx](https://github.com/dotnet/android/tree/release/11.0.1xx)

[DependencyUpdate]: <> (Begin)

- **Dependency Updates**:
  - From [37.2.31 to 37.2.32][2]
     - Microsoft.Android.Sdk.Windows

[2]: dotnet/android@c6663f2...7ff9886

[DependencyUpdate]: <> (End)

[marker]: <> (End:9a046932-c60c-436e-8fc7-8ea2f5902cb5)

---------

Co-authored-by: Jakub Florkowski <kubaflo123@gmail.com>
Fixes an infinite loop when synchronizing SelectedIndex and SelectedItem
by only updating SelectedIndex if the value changes. Adds a unit test to
ensure that changing ControlTemplate from SelectedIndexChanged does not
cause recursive events (fixes #8874).

<!--
!!!!!!! MAIN IS THE ONLY ACTIVE BRANCH. MAKE SURE THIS PR IS TARGETING
MAIN. !!!!!!!
-->

### Description of Change

<!-- Enter description of the fix in this section -->

### 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 #8874

<!--
Are you targeting main? All PRs should target the main branch unless
otherwise noted.
-->
<!-- 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!

<!--
Open .NET 11 fix PRs against net11 for review; target main for
next-major features.
After approval, a maintainer manually retargets the fix PR to the active
inflight
branch and merges it directly there. Do not merge individual fixes into
net11.
Bots must not retarget or merge. Candidate integration into net11 and
release/*
changes are separate, explicitly coordinated release work.
-->

### Description of Change

<!-- Enter description of the fix in this section -->

Restore custom Shape implementations of `IShape.PathForBounds` when a
renderer requests stroke-aware geometry.

**Regression introduced by**

[PR #37319 — Fix Rectangle Rendering as a Thin Line for Small
Heights](#37319).

The supplied reproduction works on MAUI `10.0.120` and fails on
`10.0.130` on Android and iOS.

**Root cause**

That PR introduced the internal `IShapeWithStroke` interface to
distinguish standalone shape geometry from Border stroke-aware geometry.
Platform renderers were updated to prefer this interface over
`IShape.PathForBounds`.

Custom Shapes inherit `IShapeWithStroke` from `Shape`, even when they
re-implement the public `IShape.PathForBounds` contract. The inherited
stroke-aware implementation directly calls the base path-building
method, bypassing the custom implementation. Applications cannot
re-implement `IShapeWithStroke` because it is internal.

In the reported `FieldShape`, the skipped method initializes the
fallback width and height used to construct the outline. Without that
call, the shape uses incorrect dimensions, producing a malformed outline
instead of the expected rounded border and label gap.

**Fix**

- Dispatch `Shape.IShapeWithStroke.PathForBounds` through
`IShape.PathForBounds`, honoring custom implementations.
- Preserve the requested stroke context for built-in shapes using the
base implementation.
- Save and restore that context with `try`/`finally`, including when
path generation throws.
- Leave RoundRectangle's dedicated implementation unchanged.


### 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 #40129

<!--
Verify the target branch follows the release workflow in
docs/ReleaseBranchWorkflow.md.
Infrastructure and documentation changes should target the branch where
they apply.
-->

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Jakub Florkowski <42434498+kubaflo@users.noreply.github.com>
…40128)

<!-- 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!

<!--
Open .NET 11 fix PRs against net11 for review; target main for
next-major features.
After approval, a maintainer manually retargets the fix PR to the active
inflight
branch and merges it directly there. Do not merge individual fixes into
net11.
Bots must not retarget or merge. Candidate integration into net11 and
release/*
changes are separate, explicitly coordinated release work.
-->


### Description of Change

<!-- Enter description of the fix in this section -->

Fixes NavigationPage.TitleView being shifted upward and clipped on iOS
26+ when the navigation bar clips its contents.

The full navigation bar can be taller than UIKit's title area. On the
iOS 26.5 reproduction, the bar is 54 pt high while the title area is 44
pt high. Initializing the title container to the full bar height causes
UIKit to position its wrapper at y = -5, clipping the top of the title.

- Initialize the title container using the navigation bar's width and
the title-height fallback, rather than the full bar height.
- In NavigationRenderer, use the attached superview's height instead of
prioritizing the cached navigation-bar height.
- Apply the initial-height correction to NavigationViewHandler as well.
- Preserve the iOS 26 autoresizing-mask workaround and navigation-bar
layout-change tracking.
- Add regression coverage for automatic, short, and tall title views,
exercised against both navigation implementations.

#### Regression origin

The likely introducing change is
[#32798](#32798), the .NET
10 servicing backport of
[#32341](#32341) ("Fix iOS
26 TitleView covering content in Shell and NavigationPage").

[Commit
3218849](3218849)
introduced both the full-bar-height initial frame and the cached
`_navigationBarHeight` preference in `ToolbarHeight`. The change is
absent from MAUI 10.0.10 and present in 10.0.11, matching the [reported
first failing
version](#40068 (comment)).
This attribution is based on source and release ancestry, not a
parent-versus-commit runtime bisect.

This fix retains the autoresizing-mask workaround from that PR; it
corrects the assumption that the title area must have the same height as
the full navigation bar.

#### Before / after

Both screenshots use the same local Sandbox reproduction on an iPhone 17
Pro simulator running **iOS 26.5**, with `UINavigationBar.ClipsToBounds
= true`. "Before" is the unfixed local framework build, not a separate
MAUI 9 package run.

| Before fix — title clipped | After fix — title visible |
| --- | --- |
| <img
src="https://github.com/user-attachments/assets/9c9f4b39-da15-45de-a0e9-71fb96d08687"
alt="Before fix: Czech title clipped at the top; container height 54 pt
and wrapper y minus 5 pt" width="350" /> | <img
src="https://github.com/user-attachments/assets/e42f4c2e-c2e9-4464-92cb-63f516c81112"
alt="After fix: Czech title and diacritics visible; container height 44
pt and wrapper y zero" width="350" /> |

The navigation bar remains 54 pt high in both runs. The title container
changes from **54 pt to 44 pt**, and the wrapper moves from **y = -5 to
y = 0**.

### 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 #40068

<!--
Verify the target branch follows the release workflow in
docs/ReleaseBranchWorkflow.md.
Infrastructure and documentation changes should target the branch where
they apply.
-->

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Jakub Florkowski <42434498+kubaflo@users.noreply.github.com>
…aries (#40103)

### Description of Change

When a `ResourceDictionary` is inflated at runtime (for example a style
dictionary without code-behind loaded through `Source=`), a
`BasedOn="{StaticResource …}"` lookup can only see resources already
added in that same file, plus application resources that already exist.
A base style living in a sibling merged dictionary is not reachable yet,
so loading the dictionary throws `XamlParseException: StaticResource not
found for key ButtonBaseStyle` and crashes the app at startup. Declaring
a global (implicit) style based on a shared keyed style this way is the
scenario from the issue.

**Fix**

In `StaticResourceExtension.ProvideValue`, when the unresolved target is
`Style.BasedOn` and the XAML root being parsed is a `ResourceDictionary`
(one that is still being loaded), defer the lookup to apply time through
the existing `Style.BaseResourceKey` mechanism instead of throwing. The
base style is then resolved through the consuming element's resource
scope, where the merged dictionaries are available. Failed lookups
anywhere else keep throwing exactly as before.

**Tests**

`Maui24667` (Xaml.UnitTests) inflates a page whose resources merge two
source dictionaries — a keyed `ButtonBaseStyle` and an implicit `Button`
style based on it — plus the issue's implicit-`BaseResourceKey` snippet,
and verifies the base setters are applied. The test runs on all three
inflators (Runtime, XamlC, SourceGen).

| | Without fix | With fix |
|---|---|---|
| Implicit style with `BasedOn="{StaticResource …}"` to a keyed style in
a sibling merged dictionary | `XamlParseException`: StaticResource not
found for key ButtonBaseStyle | Style applied, base setters inherited |
| Implicit style with `BaseResourceKey` (issue snippet) | works | works
|
| Full Xaml.UnitTests + Core.UnitTests | — | No new failures |

### Issues Fixed

Fixes #24667
…osite collection (#40102)

### Description of Change

A `RadioButton` whose `ControlTemplate` comes from an application-level
implicit `Style` renders correctly on iOS but never responds to taps
(#14949; the same mechanism is behind #22377 and #19478).

Because `Application.Current` resources are available as soon as an
element is constructed, the implicit style applies the `ControlTemplate`
while the `RadioButton` is still running its base-class constructors:
`StyleableElement`'s constructor applies the merged style, which
triggers `OnApplyTemplate` → `UpdateIsEnabled` →
`GestureRecognizers.Add(...)`. At that point `View`'s constructor body
has not yet subscribed to `_gestureRecognizers.CollectionChanged`, so
the tap gesture never reaches `CompositeGestureRecognizers`. The
iOS/MacCatalyst `GesturePlatformManager` attaches platform recognizers
exclusively from that composite collection, so no
`UITapGestureRecognizer` is ever created. Android and Windows resolve
taps from the raw `GestureRecognizers` collection, which is why only iOS
is affected. With a page-level style the template is applied after
construction (on parenting), so the composite collection stays in sync
and taps work.

**Fix**

After `View`'s constructor subscribes to the gesture collection, sync
any recognizers that were added during base construction into
`CompositeGestureRecognizers` (setting their `Parent`, as the
collection-changed path does). This repairs the general case — any
gesture wired while base constructors run — at no cost to views
constructed normally, whose collection is empty at that point.

**Tests**

| | Without fix | With fix |
| --- | --- | --- |
|
`TemplateFromAppLevelImplicitStyleAddsTapGestureToCompositeRecognizers`
| Fails — `CompositeGestureRecognizers` is empty, so the RadioButton
ignores taps on iOS | Passes — the tap gesture is present in both
collections |
| Full Controls.Core.UnitTests | — | No new failures |

### Issues Fixed

Fixes #14949

Co-authored-by: Jakub Florkowski <42434498+kubaflo@users.noreply.github.com>
### Description of Change

When an absolute Shell route is prefixed with `..` segments — e.g.
`GoToAsync("//../../Page2")` while two registered-route pages are pushed
on the current tab — the `..` segments are silently lost.
`ShellUriHandler.FormatUri` only handles `..` on fully relative routes,
so for `//`-prefixed routes the dots reach `ConvertToStandardFormat`,
where standard `Uri` dot-segment normalization deletes them. The request
degrades to a plain `//Page2` tab switch and the pages stay on the
previous tab's navigation stack, so re-selecting that tab shows the old
detail page instead of its root.

Because the navigation target is a different `ShellSection`, the pop
cannot be expressed in the rewritten URI (stack diffing only applies to
the target section) — the pages have to be removed from the section
being navigated away from.

**Fix**

Capture the number of leading `..` segments before the request is
resolved (`ShellUriHandler.CountLeadingDotDotSegments`) and, once the
navigation is accepted and the shell element switch has completed,
remove one page per `..` from the top of the previous section's stack —
the same `RemovePage` pattern the modal cleanup in
`ShellNavigationManager.GoToAsync` already uses. The removal is clamped
at the section root, runs only when the section actually changed
(same-section absolute routes already reset their stack), and never runs
when navigation is cancelled or deferred.

**Tests**

Added to `ShellNavigatingTests` using the issue's exact scenario (tabs
Page1/Page2/Page3, registered routes Page4/Page5 pushed on Page3's tab).

| | Without fix | With fix |
| --- | --- | --- |
| `GoToAsync("//../../Page2")` | Switches to Page2; Page4 and Page5
remain on Page3's stack | Switches to Page2; Page3's stack back to its
root |
| `GoToAsync("//../Page2")` | Switches to Page2; both pages remain |
Switches to Page2; only Page5 popped |
| Existing Shell suites | — | 566/566 pass; full Core.UnitTests has no
new failures |

### Issues Fixed

Fixes #15166

Co-authored-by: Jakub Florkowski <42434498+kubaflo@users.noreply.github.com>
… bounds (#40100)

### Description of Change

On Android, a SwipeView stops tracking the swipe as soon as the pointer
leaves the bounds of its content while the gesture is still in progress,
and resumes only when the pointer re-enters — small vertical drift
during a horizontal swipe keeps "freezing" the gesture (very noticeable
with SwipeViews inside a CollectionView).

**Root cause**

Two guards re-evaluate an already-running gesture as if it were a new
one:

- `ProcessTouchMove` returns early when the current point is outside the
content bounds, even when `_isSwiping` is already set.
- `OnTouchEvent` filters `ACTION_MOVE` through `ShouldInterceptTouch`,
which recomputes the swipe direction from the total pointer travel —
once the vertical drift exceeds the horizontal distance it reclassifies
the gesture as Up/Down, finds no items for that direction and drops the
move.

**Fix**

Both checks now only apply before a swipe starts; once `_isSwiping` is
set, moves are processed wherever the pointer is, which is the standard
platform gesture behavior (the drawer, for example, keeps tracking past
its bounds).

A second commit applies non-animated swipe translations directly instead
of going through a zero-duration `ViewPropertyAnimator`. The
zero-duration animator still needs a frame to run, so a programmatic
`Open(animated: false)` followed by detaching the view left a pending
animator keeping the view tree alive — which made the existing
`ItemsDoNotLeak` device test order-sensitive. With the direct assignment
the SwipeView category is stable across repeated runs.

**Tests**

`SwipeViewTests.SwipeKeepsTrackingWhenThePointerLeavesTheBounds`
(Android device test): starts a swipe with synthetic motion events,
moves the pointer below the view bounds while continuing the horizontal
drag, and checks the content keeps following.

| | Without fix | With fix |
|---|---|---|
| Android emulator (API 37) | Fails: `The swipe stopped tracking when
the pointer left the bounds (TranslationX -52, was -52)` | Passes.
SwipeView category 22/22, three consecutive runs |

### Issues Fixed

Fixes #37089

Co-authored-by: Jakub Florkowski <42434498+kubaflo@users.noreply.github.com>
…ShellSection (#40052)

<!-- 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!

### Description of Change

On Android with the handler-based Shell, an app crashes with
`InvalidOperationException: VirtualView cannot be null here` in
`ShellSectionWrapperFragment.OnResume()` when it resumes after a
ShellItem was replaced while it was in the background.

When a section is removed, `ShellSectionHandlerAdapter.Dispose()`
disconnects its handler. Since #37048 it leaves the wrapper fragment to
`FragmentManager`, which can still resume it. `OnResume()` already
returns early for a disconnected handler, but it checks
`_handler.VirtualView is null`. That reads the typed
`ElementHandler<ShellSection, AView>.VirtualView`, whose getter throws
once disconnected, so the guard itself throws.

The fix checks the untyped `((IElementHandler)_handler).VirtualView`,
the same way `ShellSectionHandler.iOS.cs` does.

Not changed here: several other `VirtualView is null` checks in
`ShellSectionHandler.Android.cs` (for example in
`IsCurrentlyActiveSection()` and `SetupViewPagerAdapter()`) have the
same problem. They aren't reached on this path, so I left them out to
keep this PR small.

### Tests

Added
`ShellHandlerTests_Shell.ResumingFragmentOfRemovedShellSectionDoesNotThrow`.
It creates a section renderer, disposes it the same way
`ShellItemHandler.UpdateSections` does for a removed section, and
resumes its wrapper fragment.

Ran `ShellHandlerTests_Shell` locally on an Android emulator (API 36,
x86_64):
- With the fix: 80/80 pass.
- Without the fix: the new test fails with
`System.InvalidOperationException: VirtualView cannot be null here at
ShellSectionWrapperFragment.OnResume()`; the other 79 pass.

### Issues Fixed

Fixes #40051

Co-authored-by: Jakub Florkowski <42434498+kubaflo@users.noreply.github.com>
Generalize context transfer for all BindingBase types in BindableObject,
and ensure correct specificity/context handling in MultiBinding when
targeting BindingContext. Add tests to verify MultiBinding context
behavior in various scenarios.

Fixes #10792

Co-authored-by: Jakub Florkowski <42434498+kubaflo@users.noreply.github.com>
Add handling for Binding.DoNothing in value converters to skip
target/source updates in BindingExpression and TypedBinding. Introduce
BindingDoNothingTests to verify correct behavior for one-way, two-way,
initial binding, TargetNullValue, and StringFormat scenarios.

 Fixes #11740

Co-authored-by: Jakub Florkowski <42434498+kubaflo@users.noreply.github.com>
…9920)

<!-- 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!

### Issue details
On the Project page, iOS VoiceOver reads the names of Tags and Icons but
does not announce whether they are selected or unselected. The expected
behavior is for VoiceOver to announce each item’s name and selection
state.
 
### Root cause
For these selectable CollectionView items, Android and macOS announce
selection state through native accessibility behavior. iOS VoiceOver
does not announce the selected/unselected state, and the item
descriptions contain only the names. Therefore, the state must be
included in the semantic description on iOS; doing so on Android and
macOS would duplicate their native announcement.
 
### Description of changes
Updated the visual states in ProjectDetailPage.xaml to include
“Unselected” in the Normal state and append “Selected” to the item
description in the Selected state on iOS only.
 
### Issues Fixed

Fixes #39907

### Screenshot

| Before Issue Fix | After Issue Fix |
|----------|----------|
| <img width="2000" height="1000"
src="https://github.com/user-attachments/assets/9957c168-b220-43b6-9a1c-63514e73bddc">
| <img width="2000" height="1000"
src="https://github.com/user-attachments/assets/4c930934-937e-485d-aa91-9cae5630825d">
|

Co-authored-by: Jakub Florkowski <42434498+kubaflo@users.noreply.github.com>
### Description of Change

When a modal page is pushed at startup, the Shell toolbar gets the
default dark color instead of the colors set on the Shell, and stays
wrong after the modal closes (on Android and Windows, which drive the
toolbar from the resolved `ShellAppearance`).

**Root cause**

`GetAppearanceForPivot` walks up from the pivot's presented page to
collect the `Shell.*` appearance values. For a `ShellSection` pivot,
`WalkToPage` used `IShellSectionController.PresentedPage`, which returns
the top modal page while a modal is open. Modal pages are parented to
the `Window`, not the Shell, so the walk immediately left the Shell
tree, found nothing and returned null — and the toolbar fell back to the
default colors.

**Fix**

`WalkToPage` now resolves the `ShellSection` to the top page of its own
navigation stack — exactly what `PresentedPage` returns when no modal is
open — so appearance resolution gives the same result whether or not a
modal is sitting on top.

**Tests**

`ShellAppearanceTests.AppearanceIsResolvedWhileAModalPageIsOpen`: sets
`Shell.BackgroundColor`, pushes a modal page, then registers an
appearance observer for the current section.

| | Without fix | With fix |
|---|---|---|
| `main` (2f3276c) | Fails: the observer gets a null appearance |
Passes; Controls.Core.UnitTests 6734 passed (the one failure is a
pre-existing decimal-separator locale test that fails on `main` on this
machine too) |

### Issues Fixed

Fixes #18409

Co-authored-by: Jakub Florkowski <42434498+kubaflo@users.noreply.github.com>
Refactor BindingCondition to track state via a new attached property,
ensuring triggers apply correctly when the bound value is initially
null. Update property change logic to only raise ConditionChanged on
actual state changes. Add unit tests to verify correct behavior with
null values and MultiTrigger scenarios, addressing issue #6847.

Fixes #6847

Co-authored-by: Jakub Florkowski <42434498+kubaflo@users.noreply.github.com>
…conversion during repeated rendering (#39909)

<!-- 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. !!!!!!!
-->

### Root cause

The issue occurs because of missing deterministic disposal of temporary
Android graphics objects during repeated path rendering.
PlatformCanvas.ClipPath created Android Path objects without disposing
them, while arc-conversion helpers created undisposed RectF objects for
each arc segment. Their cleanup depended on garbage collection and
finalization, contributing to memory growth during sustained rendering.

### Solution description

The fix involves using scoped disposal for converted Android paths in
ClipPath, PlatformDrawPath, and FillPath, ensuring cleanup even when
subsequent operations throw. It also replaces temporary RectF
allocations with the coordinate-based ArcTo overload in all three
arc-conversion helpers.

This reduces platform-object allocations while preserving path geometry,
winding rules, and caller-owned PathF instances.

Validated the behavior in the following platforms
 
- [x] Android
- [ ] Windows
- [ ] iOS
- [ ] Mac
 
### Issues Fixed
  
Fixes #39675

### Output  ScreenShot

|Platform|Before|After|
|--|--|--|
|Android| <video
src="https://github.com/user-attachments/assets/252c5f3f-5393-414c-b0f7-b4572b1a9e14">|
<video
src="https://github.com/user-attachments/assets/122e7ef9-acb2-4b5d-9152-1bdeefa46ebf">|

Co-authored-by: Jakub Florkowski <42434498+kubaflo@users.noreply.github.com>
… view (#39900)

### Description of Change

With a `FlyoutPage` on Android, a tap on an empty area of the open
flyout fell through to the detail page behind it and clicked its
controls. The flyout view is added to the `DrawerLayout` without
anything consuming the touches its content doesn't handle, so an
unhandled `ACTION_DOWN` inside the open drawer continued to the detail
sibling — the classic Android drawer issue that a plain app solves with
`android:clickable="true"` on the drawer pane.

**Fix**

`MauiDrawerLayout.SetFlyoutView` now subscribes a `Touch` handler on the
flyout view that marks the leftover events handled. `MauiDrawerLayout`
is shared, so this covers both `FlyoutPage` and the Shell flyout.

- Controls inside the flyout are unaffected: the handler only sees
touches no child consumed.
- The drawer's swipe-to-close gesture is unaffected: `DrawerLayout`
intercepts drags before they reach the pane.
- The accessibility tree is unchanged, because an `OnTouchListener`
doesn't mark the view clickable the way `Clickable = true` would.
- There's deliberately no unsubscribe in `Disconnect`: the handler is a
static method that keeps nothing alive, and the Java peer can already be
disposed by the time the Shell handler disconnects, so touching it there
would throw an `ObjectDisposedException`. The subscription on a replaced
flyout view is removed in `SetFlyoutView` itself.

**Tests**

`FlyoutPageTests.TapOnTheOpenFlyoutDoesNotReachTheDetailPage` (Android
device test): opens the flyout, dispatches a tap in the middle of it and
checks the detail's platform view never sees the touch.

| | Without fix | With fix |
|---|---|---|
| Android emulator (API 37) | Fails: the tap reached the detail page |
Passes. FlyoutPage category 18/18, Shell category 184/184 |

### Issues Fixed

Fixes #14609
…ed scrolling (#39882)

<!-- 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. !!!!!!!
-->

### Description of Change

<!-- Enter description of the fix in this section -->

Fix CollectionView height updates after replacing ItemsSource with fewer
items on iOS and Mac Catalyst, while preserving sizing behavior when
CollectionView is nested inside ScrollView.

In #38276, CollectionView retains its previously rendered
height after the item count decreases, leaving unused space and stale
Height/SizeChanged values. The previous fix, #38441, moved
content-size checking exclusively to ViewDidLayoutSubviews. This
introduced the nested-scroll regression reported in #39847:
the CollectionView could remain smaller than its content, creating an
additional vertical scroll range inside the outer ScrollView. That fix
was reverted by #39856.

This replacement builds on the reverted implementation:

- Preserve the existing ViewWillLayoutSubviews content-size check.
- Add a guarded ViewDidLayoutSubviews check to detect self-sizing
content changes resolved during native layout, allowing the
CollectionView to shrink.
- Skip the post-layout check when content exceeds the current bounds in
the scrolling direction, without updating the cached content size. This
leaves growth detection to the pre-layout check and avoids the
nested-scroll regression.
- Refresh empty-source tracking when replacing ItemsSource so grouped
collections collapsed to zero can grow again, even when UIKit defers
data-source callbacks.
- Restore the required iOS and Mac Catalyst public API entries for the
layout callback override.


### 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 #38276

Related: #39847 — adds coverage to prevent reintroducing the
nested-scroll regression already addressed by the revert.

<!--
Are you targeting main? All PRs should target the main branch unless
otherwise noted.
-->
<!-- 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!


### Root cause: 

- `StrokeLineJoin` was correctly mapped to Core Graphics, but the border
stroke was clipped to the original shape path. Round and Bevel join
geometry extends beyond convex path corners, so the active clip removed
the visible join geometry and caused corners to appear sharp.

### Description of Change

- The iOS `MauiCALayer` renderer now uses `RequiresUnclippedStroke` to
identify Round, Bevel, and custom-MiterLimit configurations. For these
cases, it renders the stroke on an inset path without the outer shape
clip, preserving the complete join geometry inside the `CALayer` bounds.
- The background is clipped to the inset path so it does not appear in
bevelled corner cutouts.
- Default Miter rendering with the default miter limit retains the
existing clipped rendering path, preserving current border dimensions
and dash placement for unaffected Border scenarios.

### Issues Fixed

Fixes #29743

### Tested the behavior in the following platforms

- [ ] Windows
- [ ] Android
- [x] iOS
- [x] Mac

| Before Issue Fix | After Issue Fix |
|----------|----------|
| <img width="1125" height="2436" alt="BeforeFix29743"
src="https://github.com/user-attachments/assets/45ada062-5d57-491c-a863-2cbbb7b7d9f4"
/> | <img width="1125" height="2436" alt="AfterFix29743"
src="https://github.com/user-attachments/assets/98ed0c28-7a5d-480e-9066-b88330bb5032"
/> |
<!--
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>
…imated push (#40135)

<!-- 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!

<!--
Open .NET 11 fix PRs against net11 for review; target main for
next-major features.
After approval, a maintainer manually retargets the fix PR to the active
inflight
branch and merges it directly there. Do not merge individual fixes into
net11.
Bots must not retarget or merge. Candidate integration into net11 and
release/*
changes are separate, explicitly coordinated release work.
-->

### Issue details

Issue reports that immediately popping an Android modal after a
non-animated push removes the page from `Navigation.ModalStack`, but
leaves its native `ModalFragment` dialog on screen:

```csharp
await Navigation.PushModalAsync(new ContentPage { BackgroundColor = Colors.Yellow }, animated: false);
await Navigation.PopModalAsync(animated: false);
```

Expected: the modal closes and the previous page becomes visible.
Actual: the logical modal stack is empty, but a full-screen native
dialog remains, leaving logical and native navigation out of sync. The
author reports working behavior in **10.0.20**, failure in **10.0.30**,
and continued failure in 10.0.40, 10.0.110 and 10.0.130. Animated pushes
are not affected by the reported reproduction because the animation
gives the page time to load.

The immediate push/pop sequence was reproduced in the Sandbox sample on
**Android 15/API 35**: before the fix, `Loaded at pop: False; stack: 0;
dialogs: 1`.

### Root cause

`ModalFragment.OnResume` can run before the modal page's platform view
is attached and `Loaded` has fired. Previously, it unconditionally
raised `PresentationCompleted`, allowing `PushModalAsync(animated:
false)` to return before the modal was ready for an immediate native
pop.

The subsequent `PopModalAsync` checks `IsModalReady`. When the current
platform page is not loaded, it skips `PopModalPlatformAsync` and defers
stack synchronization, but still removes the modal's logical parent and
disconnects its handler. The native modal remains in
`_platformModalPages`. Deferred synchronization then waits for that same
modal to have a handler and loaded platform view, a condition that
cannot recover after disconnection. Consequently, the native dialog is
never dismissed.

### Regression reason

The **likely introducing change** is [PR
#32479](#32479), which fixed a
related hang involving `Task.Yield()` by making non-animated pushes
await a new `PresentationCompleted` event. That event was raised
synchronously from `OnResume`, which is not sufficient proof that the
modal page is loaded. An awaiting immediate pop can therefore continue
inside this lifecycle timing window.

Release-source tracing supports this attribution:

- The Android modal-manager source in **10.0.20** exactly matches the
parent of the [shipped change
`5214279`](5214279).
- The source in **10.0.30** exactly matches both the original PR merge
and that shipped change, integrated through
[#33363](#33363).
- The shared modal-manager source is identical between those releases,
locating the relevant behavioral difference in Android presentation
timing.

This is **likely**, not confirmed introduction: no same-environment
runtime comparison of the candidate and its parent was performed. The
release histories diverge, so the version comparison was not treated as
a linear bisect.

### Fix details

In `ModalNavigationManager.Android.cs`, complete presentation only when
**both** the page is loaded and the fragment is resumed:

- Subscribe to the modal page's `Loaded` event when constructing the
fragment.
- If `Loaded` happens first, `OnResume` completes presentation only when
`IsLoaded` is true.
- If resume happens first, the `Loaded` handler completes presentation
only when `IsResumed` is true.
- Unsubscribe `Loaded` when presentation completes or the dialog is
dismissed.
- Preserve the existing early-start/destroy completion safeguards.

This strengthens the presentation-readiness guarantee without adding
delays or changing shared modal-stack cleanup. No public API changes are
introduced, and other platform implementations are unchanged.


### 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 #40134

<!--
Verify the target branch follows the release workflow in
docs/ReleaseBranchWorkflow.md.
Infrastructure and documentation changes should target the branch where
they apply.
-->

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Jakub Florkowski <42434498+kubaflo@users.noreply.github.com>
…ng (#39911)

<!-- 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. !!!!!!!
-->

### Description of Change

Custom font loading can pump STA messages. Performing that work
synchronously during a XAML layout tick can cause dispatcher reentrancy
and a native WinUI fail-fast crash.

Defer font-image rendering with Task.Yield() before entering the
existing Win2D rendering pipeline. This preserves UI-thread rendering
while allowing the current layout tick to finish. Also honor
cancellation before rendering and after the yield, avoid logging
expected cancellation as a warning, and dispose CanvasTextFormat.

### 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 #39888

<!--
Are you targeting main? All PRs should target the main branch unless
otherwise noted.
-->
…40157)

<!-- 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!

<!--
Open .NET 11 fix PRs against net11 for review; target main for
next-major features.
After approval, a maintainer manually retargets the fix PR to the active
inflight
branch and merges it directly there. Do not merge individual fixes into
net11.
Bots must not retarget or merge. Candidate integration into net11 and
release/*
changes are separate, explicitly coordinated release work.
-->

### Target Branch

| This PR is for | Initial base |
| --- | --- |
| New features, API changes, or .NET 12 work (including .NET 12 fixes) |
`main` |
| .NET 11 servicing fixes | `net11`, for review |
| Older servicing, release integration, infrastructure, or documentation
| The branch designated for that work |

- [x] I selected the applicable base branch using the [contribution
guide](https://github.com/dotnet/maui/blob/main/.github/CONTRIBUTING.md#choose-your-pr-base-before-starting).

For .NET 11 fixes, only a maintainer retargets the approved PR to the
active
inflight lane and merges it after CI validates that final base. Do not
merge
individual fixes directly into `net11`; agents must not retarget or
merge.

### Description of Change

<!-- Enter description of the fix in this section -->

Adds executable XAML regression coverage for `{Binding A.B.C.Text}` when
intermediate references are null despite non-nullable declarations. Each
test runs with Runtime, XamlC, and SourceGen inflation.

**Investigation:** The `11.0.0` release tag still bases null-conditional
access on nullable annotations and generates `source.A.B.C.Text`.
Current `net11` already includes the fix from #36444
(`803bc81a488007ce0647ab5693cf4811b8ce4844`), which uses runtime
nullability and generates `source.A?.B?.C?.Text`. No additional
production-code change is needed on this base; this PR adds behavioral
coverage rather than duplicating that fix.

**Important testing detail:** `TypedBinding` catches getter
`NullReferenceException`s. Checking only the resulting label text or
using `Assert.Throws` misses the issue. The new test captures
thread-local first-chance exceptions during binding evaluation, with the
AppDomain event handler removed in `finally`. This detects
debugger-visible exceptions even when the binding engine catches them.
It does not claim that every exception escapes the binding engine or
crashes the app.

The other tests verify recovery when A, B, or C becomes null and is
restored, leaf-property updates, detached-leaf changes not affecting the
target value, and two-way bindings writing null to a
non-nullable-declared reference property.

**Proposed resolution:** Retain the runtime-nullability fix already
present in `net11` and ensure it is included in the applicable servicing
release. This test-only PR protects that behavior. Existing #36444
coverage inspects generated source; these tests execute the inflated
bindings.

cc @simonrozsival - the fix from #36444 is present on `net11` but absent
from the `11.0.0` tag. The new executable test reproduces the
SourceGen-only first-chance exceptions with the shipped generator and
passes with the existing fix.

#### Validation

The A/B check replaced only `CompiledBindingMarkup.cs` with its contents
at `4b41c78edb15307a84caf5b4bfe89a6df0813dcb`, which are byte-identical
to that file in the `11.0.0` tag. All other code remained at current
`net11`; this is not a full released-package/device run.

| Generator implementation | Runtime | XamlC | SourceGen |
| --- | --- | --- | --- |
| Shipped `11.0.0` generator file | 3 passed | 3 passed | 2 passed,
first-chance exception test failed |
| Current `net11` / existing #36444 fix | 3 passed | 3 passed | 3 passed
|

Exact commands and results:

```powershell
$PSDefaultParameterValues["EstablishBrokenBaseline.ps1:BaseBranch"] = "4b41c78edb15307a84caf5b4bfe89a6df0813dcb"
& .github/skills/verify-tests-fail-without-fix/scripts/verify-tests-fail.ps1 -PRNumber 40139 -TestType XamlUnitTest -TestFilter "FullyQualifiedName~Maui40139" -FixFiles src/Controls/src/SourceGen/CompiledBindingMarkup.cs -BaseBranch 4b41c78 -RequireFullVerification
```

Result: **VERIFICATION PASSED** - 1 failed / 8 passed with the shipped
generator file; 9 passed with the current generator. `40139` is the
report-directory identifier for the issue investigation. The PowerShell
default also pins the shared baseline helper, which otherwise loses the
explicit base during dot-sourcing.

```shell
dotnet build Microsoft.Maui.BuildTasks.slnf -p:IncludeAndroidTargetFrameworks=false -p:IncludeIosTargetFrameworks=false -p:IncludeMacCatalystTargetFrameworks=false -p:IncludeMacOSTargetFrameworks=false -v q
```

Result: passed.

```shell
dotnet test src/Controls/tests/Xaml.UnitTests/Controls.Xaml.UnitTests.csproj -c Debug -p:IncludeAndroidTargetFrameworks=false -p:IncludeIosTargetFrameworks=false -p:IncludeMacCatalystTargetFrameworks=false -p:IncludeMacOSTargetFrameworks=false --filter 'FullyQualifiedName~Maui40139' -v q
```

Result: passed, 9 tests. Executed locally on macOS using the installed
.NET 11 RC2 SDK; no native Android/iOS device validation was performed.

### 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. -->

Relates to #40139; adds regression coverage for the existing fix to
#36313. This PR does not introduce a new production fix or establish
that a serviced package has shipped.

<!--
Verify the target branch follows the release workflow in
docs/ReleaseBranchWorkflow.md.
Infrastructure and documentation changes should target the branch where
they apply.
-->

---------
…40150)

### Target Branch

| This PR is for | Initial base |
| --- | --- |
| New features, API changes, or .NET 12 work (including .NET 12 fixes) |
`main` |
| .NET 11 servicing fixes | `net11`, for review |
| Older servicing, release integration, infrastructure, or documentation
| The branch designated for that work |

- [x] I selected the applicable base branch using the [contribution
guide](https://github.com/dotnet/maui/blob/main/.github/CONTRIBUTING.md#choose-your-pr-base-before-starting).

### Description of Change

On iOS and Mac Catalyst, `HtmlWebViewSource.BaseUrl` is not used as a
URL. `MauiWKWebView.LoadHtml` passes every value to `new NSUrl(baseUrl,
true)`, which is `initFileURLWithPath:isDirectory:`. A URL such as
`https://example.com/` is treated as a relative file path and becomes a
`file:` URL under the current directory. The loaded document therefore
never gets the origin the app asked for, so these break:

- relative URLs that should resolve against a remote base
- cookies and storage scoped to that origin
- services that identify the embedding app by its `Referer`. For
example, YouTube's embedded player requires one ([Required Minimum
Functionality](https://developers.google.com/youtube/terms/required-minimum-functionality)).
Google's documented way to provide it on iOS is
`loadHTMLString:baseURL:` with an https base URL, which is what
`HtmlWebViewSource.BaseUrl` maps to. With this bug the player shows
"Error 153".

Android already passes `BaseUrl` to `LoadDataWithBaseURL` as a URL, so
this makes iOS and Mac Catalyst behave like Android.

**Change:** `LoadHtml` resolves the base URL in a new `ResolveBaseUrl`:

| `BaseUrl` | Before | After |
| --- | --- | --- |
| `https://example.com/` | `file:///…/https:/example.com/` (a file URL
under the current directory) | `https://example.com/` |
| a file system path, e.g. `NSBundle.MainBundle.BundlePath` | directory
file URL | unchanged |
| `null` / empty | app bundle path | unchanged |

A value counts as a URL when `NSUrl.FromString` parses it with a scheme.
Anything else keeps the existing file-path behaviour, so apps that pass
a bundle path for local content are not affected.

No open PR addresses this issue.

### Tests

Device tests in `WebViewHandlerTests.iOS.cs` (it also compiles for Mac
Catalyst). Each loads HTML with a `BaseUrl` and reads `document.baseURI`
from the page:

- `HtmlSourceBaseUrlWithSchemeIsDocumentBaseUrl` for
`https://example.com/` and `https://example.com/content/`
- `HtmlSourceBaseUrlFilePathStaysFileUrl`, which pins the existing
file-path behaviour
- `HtmlWebViewSourceStub` gains a `BaseUrl` property for these tests

Run locally with xharness, `Category=WebView`, on this branch's base
`net11` (e7f7353):

| Run | Result |
| --- | --- |
| iOS simulator 26.5, without the fix | both scheme cases fail:
`Expected "https://example.com/"`, `Actual
"file:///Users/…/Library/Develop…"`. The file-path case passes. |
| iOS simulator 26.5, with the fix | 79 passed, 0 failed, 2 skipped |
| Mac Catalyst, with the fix | 74 passed, 0 failed, 7 skipped |

### Issues Fixed

Fixes #19792

Co-authored-by: Jakub Florkowski <42434498+kubaflo@users.noreply.github.com>
…ation (#40148)

<!-- 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!


### Issue

After upgrading from .NET MAUI 10 to 11, XAML source generation fails
when a `DynamicResource` key is supplied through a nested markup
extension:

```xml
<Label FontSize="{DynamicResource {x:Static local:FontSizes.Medium}}" />
```

Here, `FontSizes.Medium` is a public string constant containing a
resource dictionary key. Instead of resolving that key, compilation
reports:

```text
MAUIG1001: Unable to cast object of type
'Microsoft.Maui.Controls.Xaml.ElementNode' to type
'Microsoft.Maui.Controls.Xaml.ValueNode'.
```

The exact error was reproduced in the MacCatalyst Sandbox build before
applying this fix.

### Root cause

`KnownMarkups.ProvideValueForDynamicResourceExtension` optimizes
resource creation during the source generator's early value-creation
pass. It assumes the key node is a `ValueNode` containing a literal
string and casts it directly.

Nested markup extensions such as `x:Static` are represented by
`ElementNode` instances, so this assumption causes an invalid cast
before the nested extension can be evaluated.

### Fix

Restrict the early optimization to literal string keys. When the key is
not a literal string, decline the optimization and let the existing
markup-extension pipeline evaluate the nested value, assign
`DynamicResourceExtension.Key`, and invoke `ProvideValue` normally.

This preserves the existing literal-key fast path without adding
special-case handling for `x:Static` or changing the public API.

### Regression coverage

Add 10 parameterized cases covering literal keys and nested `x:Static`
keys backed by constants, static readonly fields, and static properties,
plus nested `x:String` values. Both positional and explicit `Key=` forms
are covered.

Each case compiles and executes the generated page, verifies the initial
font size, and confirms that replacing the resource updates the label's
font size. Before the fix, nine cases failed and the positional
literal-key control passed; afterward, all 10 pass.


### 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 #40145

<!--
Verify the target branch follows the release workflow in
docs/ReleaseBranchWorkflow.md.
Infrastructure and documentation changes should target the branch where
they apply.
-->

---------

Co-authored-by: Jakub Florkowski <42434498+kubaflo@users.noreply.github.com>
### Description of Change

With the .NET 11 implicit XAML namespaces feature, `{x:Static
Routes.LineItemsPage}` fails with `MAUIG1001: Type not found Routes`
when `Routes` is produced by another source generator (e.g.
epj.RouteGenerator in the repro project), while the same reference works
with an explicit `xmlns` prefix. Roslyn source generators cannot see
each other's output, so the XAML source generator has no symbol for such
types. For explicit `clr-namespace:` prefixes it already defers to the
C# compiler by emitting `global::{ns}.{Type}.{member}` as a guess (which
is why the prefix workaround works), but for the implicit/global xmlns —
where a set of candidate namespaces is registered rather than a single
one — no such fallback existed, and the generator reported a hard error.
Types that are part of the compilation already resolve correctly through
the implicit xmlns in all inflators, and XamlC/runtime inflation are
unaffected since they run against the compiled assembly.

**Fix**

When `x:Static` can't resolve its type symbol and the xmlns is an
aggregated one (such as the implicit
`http://schemas.microsoft.com/dotnet/maui/global`), resolution is
deferred to the C# compiler, exactly like the existing `clr-namespace:`
fallback. The deferral candidates are deliberately narrow: only CLR
namespaces (aggregated xmlns can also map to other xmlns URIs, which are
filtered out) that the **current assembly** registered on that xmlns —
metadata references are immutable, so a type the generator cannot see
can only materialize in the compilation's own assembly, as another
generator's output. In practice that leaves:

- one candidate (the common case): the member access is emitted fully
qualified, `global::Test.Routing.Routes.LineItemsPage` — no usings, no
name-collision surface;
- several candidates (the app registered 2+ of its own namespaces on one
xmlns): the member access is emitted unqualified and the candidates
become `using` directives in the generated file, so the compiler
resolves the name or reports CS0104 on a genuine ambiguity;
- no valid candidate: the existing `MAUIG1001` error is reported, as
before.

The usings travel as marker lines inside the generated body and are
lifted into `using` directives by the final code writers, so they reach
both `InitializeComponent` and the Hot Reload `UpdateComponent` output
(which previously discarded them and produced an uncompilable update for
this scenario).

**Tests**

`Issues/Maui39763.cs` reproduces the scenario with the source generator
driver: the x:Static type is absent from the compilation the generator
sees (like another generator's output) but registered in the global
xmlns, and the tests verify the generated code compiles once the type
exists in the final compilation.

| | Without fix | With fix |
| --- | --- | --- |
| `XStaticWithGeneratedTypeInImplicitXmlns` | Fails: `error MAUIG1001: …
Type not found Routes.` | Passes; asserts the exact
`global::Test.Routing.Routes.LineItemsPage` output |
| `XStaticWithGeneratedTypeInAggregatedXmlns` (urn: aggregation) |
Fails: emitted `using urn:test39763;` | Passes |
| `XStaticWithGeneratedTypeInImplicitXmlnsMultipleNamespaces` | — |
Passes; pins the multi-candidate usings path |
| `XStaticWithResolvableTypeInImplicitXmlns` (control) | Passes | Passes
|
| `Maui39763Tests.XStaticFallbackUsings_ReachUpdateComponent` (Hot
Reload) | Fails: no `using` in `UpdateComponentSource` | Passes; all
generated sources compile |
| Full Xaml.UnitTests | 2 pre-existing locale failures | Same 2, zero
new (2183 passed) |
| Full SourceGen.UnitTests | — | 629 passed / 0 failed |

Known residual, intrinsic to CSC deferral: in the multi-candidate case a
field (`x:Name`) or a type in the page's namespace with the same name as
the deferred type can still shadow it — the single-candidate path, which
covers the issue's scenario, is immune.

### Issues Fixed

Fixes #39763

Co-authored-by: Jakub Florkowski <42434498+kubaflo@users.noreply.github.com>
…request (#40124)

### Description of Change

On Android, pressing the system back button while an animated
`NavigationPage.PushAsync` is still running pops the page natively
without MAUI being notified: during an in-flight fragment transaction
the back press is consumed by an AndroidX callback registered later than
MAUI's (`OnBackPressedDispatcher` invokes the most recently added
enabled callback). After that:

- the `Task` returned by `PushAsync` never completes —
`StackNavigationManager` finishes a navigation when the outgoing
fragment's view is destroyed, and a cancelled transition never destroys
it,
- `NavigationStack`/`CurrentPage` still contain the pushed page while
the screen shows the previous one, and the next back press is delivered
to the invisible page,
- anything awaiting that `PushAsync` hangs, so the app looks frozen.

**Fix**

`StackNavigationManager` now reconciles when the platform back stack
pops without a MAUI request. On every `OnDestinationChanged` that was
not produced by `ApplyNavigationRequest` itself (guarded by a flag
around the request processing), it compares the platform back-stack
depth with the cross-platform stack; when the platform has fewer
entries, it trims the stack to what is actually on screen and completes
the pending navigation through the existing `NavigationFinished` path —
the same reconciliation `IStackNavigation.NavigationFinished` already
performs on the Controls side (stack sync, `CurrentPage`, toolbar, task
completion).

This is the outcome the issue asks for: the interrupted push is treated
as cancelled, the `PushAsync` task completes, and the cross-platform
stack matches what is displayed.

**Tests**


`NavigationPageTests.PushCompletesWhenThePlatformPopsDuringTheTransition`
(Android device test): starts an animated push and immediately pops the
platform back stack — what the stolen back press does — then checks the
push task completes, the stack has a single page and `CurrentPage` is
the root again.

| | Without fix | With fix |
|---|---|---|
| Android emulator (API 37) | Fails: `PushAsync never completed after
the platform popped the page` | Passes. NavigationPage category 25
passed / 1 failed / 1 skipped — the one failure (`BarBackgroundColor
respects Android system chrome opt-out`) fails identically on unmodified
`main` on the same emulator |

### Issues Fixed

Fixes #39456

Co-authored-by: Jakub Florkowski <42434498+kubaflo@users.noreply.github.com>
Handle cancellation during image loading by treating it as a failure.

<!--
!!!!!!! MAIN IS THE ONLY ACTIVE BRANCH. MAKE SURE THIS PR IS TARGETING
MAIN. !!!!!!!
-->

### Description of Change

<!-- Enter description of the fix in this section -->

### 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 this error

<img width="1292" height="995" alt="image"
src="https://github.com/user-attachments/assets/ed1b0a9e-a1cd-4de0-88ce-6b61da262efa"
/>

---------

Co-authored-by: Jakub Florkowski <kubaflo123@gmail.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
kubaflo and others added 11 commits November 23, 2026 22:14
… device tests (#40486)

<!-- 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!

<!--
Open .NET 11 fix PRs against net11 for review; target main for
next-major features.
After approval, a maintainer manually retargets the fix PR to the active
inflight
branch and merges it directly there. Do not merge individual fixes into
net11.
Bots must not retarget or merge. Candidate integration into net11 and
release/*
changes are separate, explicitly coordinated release work.
-->

### Target Branch

| This PR is for | Initial base |
| --- | --- |
| New features, API changes, or .NET 12 work (including .NET 12 fixes) |
`main` |
| .NET 11 servicing fixes | `net11`, for review |
| Older servicing, release integration, infrastructure, or documentation
| The branch designated for that work |

- [x] I selected the applicable base branch using the [contribution
guide](https://github.com/dotnet/maui/blob/main/.github/CONTRIBUTING.md#choose-your-pr-base-before-starting).

This is SR2 candidate integration work for #40116, so it targets
`candidate/11.0.1xx-sr2`. #40457 was merged straight into the candidate
(0eb47dd) and `net11` doesn't have it, so there is nothing to revert
on `net11`.

### Description of Change

This reverts #40457 ("Window: Disconnect page handlers when the window
is destroyed"), which crashes the Controls device-test apps on Android,
iOS and Windows and leaves MacCatalyst Controls device tests without
results.

#40457 changed `Window.Destroying()` to disconnect the handlers of the
window's page and modal stack. Platform callbacks still run after
`Destroying()`, and when they reach the now-disconnected handlers the
process crashes:

| Platform | Crash | Stack |
| --- | --- | --- |
| iOS (CoreCLR + Mono, iOS 18 and 26 queues),
Controls.DeviceTests-General | `InvalidOperationException: Page cannot
be null here` | `ControlsModalWrapper.UpdateBackgroundColor` ←
`ControlsModalWrapper.ViewWillAppear` (the modal is dismissed after
window teardown) |
| iOS (CoreCLR + Mono), Controls.DeviceTests-Shell |
`InvalidOperationException: VirtualView cannot be null here` |
`ShellPageRendererTracker.Dispose` ← `ShellSectionHandler.DisposePage` ←
`OnPopRequested` |
| Android (CoreCLR + Mono), API 33 | `ArgumentNullException` for
`context` | `ShellSectionRenderer.OnCreateView`. A pending fragment
transaction runs after teardown, and `FindMauiContext()` returns null. |
| Windows (packaged + unpackaged) | `0xc000027b`, faulting module
`Microsoft.UI.Xaml.dll` | Process crash during the Controls device tests
(attributed by mechanism; not reproduced locally) |
| MacCatalyst (CoreCLR, osx.15 + osx.26) | No test results | osx.15
`Controls Tests` ran into the 3600 s XHarness timeout (exit 94,
`TEST_RESULTS_MISSING`; the app was still alive). On osx.26 the app
exited after about 6 minutes with no results file, and XHarness still
reported success. Without #40457, both queues report 1636–1777 tests in
about 12 minutes (8 runs in builds 1690816, 1692066, 1692670, 1692736).
Attributed by correlation; not reproduced locally. |

**CI** (`maui-pr-devicetests` on the candidate branch):

| Build | Candidate head | Contains #40457 | Result |
| --- | --- | --- | --- |
|
[1692670](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1692670)
| b828f7b | no | Controls device tests passed |
|
[1692843](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1692843)
| e064224 | yes | Helix work items crash: iOS General + Shell on all
four iOS legs; Android CoreCLR + Mono; Windows packaged + unpackaged;
MacCatalyst `Controls Tests` produced no results on either queue |

The revert is a full `git revert` of 0eb47dd (5 files, +2/−214). It
restores `Window.cs` and removes the tests #40457 added:
- `BlazorWebViewTests.WindowDestroying.cs` and
`DisposalTrackingComponent.razor`;
- the `WindowsTests` and `ModalNavigationPlatformTests` unit tests for
the destroy-disconnect behavior.

These tests are removed together with the behavior they assert. No
unrelated test is changed.

#40457 merged without a `maui-pr-devicetests` run, so these crashes
first showed up after it landed on the candidate.

### Local evidence

Each run starts from candidate head a6d3ad9. The "re-apply" step
reverts the revert (`git revert --no-commit HEAD`), which gives back a
tree byte-identical to a6d3.

**iOS, `Category=Modal`** (CoreSimulator iPhone 16 Pro, iOS 26.5):

| Step | Result |
| --- | --- |
| a6d3 (with #40457) | RED: APP_CRASH, `Page cannot be null here` from
`ControlsModalWrapper.UpdateBackgroundColor` |
| This revert | GREEN: 222/222 passed |
| Re-apply #40457 | RED: same exception |
| Revert restored | GREEN: 222/222 passed |

**Android, `Category=Shell`** (emulator API 35, arm64):

| Step | Result |
| --- | --- |
| a6d3 (with #40457) | RED: APP_CRASH (XHarness exit 80), FATAL
`ArgumentNullException: context` at `ShellSectionRenderer.OnCreateView`,
right after `FlyoutContentUpdatesAfterChange` (identical to CI) |
| This revert | No crash |
| Re-apply #40457 | RED: same FATAL |
| Revert restored | GREEN: 197/197 passed, XHarness exit 0, no FATAL |

The first revert run had 4 `ShellRendererTransitionTests` failures
(193/197). They didn't come back when the revert was restored (197/197),
so they're intermittent and unrelated to this change.

**iOS, `Category=Shell`** on this branch: no crash; the `VirtualView
cannot be null here` path is gone.
- On iOS 26.5,
`FlyoutHeaderLabelsAreArrangedWhenBoundTextChangesWithoutResizingHeader`
(#39877) failed 2/552. It is a layout assertion, and this PR doesn't
touch layout.
- The same `Category=Shell` run on an iPhone 11 Pro **iOS 18.5**
simulator (the device CI uses is iPhone 11 Pro, iOS 18.1) passed
552/552, XHarness exit 0.
- CI b828 also passed that test on iOS. So the iOS 26.5 failure is
local-environment only and unrelated to this revert.

### Re-landing #40056's fix

The BlazorWebView disposal leak from #40056 is still worth fixing. A
re-land needs to tolerate callbacks that arrive after
`Window.Destroying()`:
- the iOS modal wrapper's `ViewWillAppear`/dismissal;
- Android fragment transactions that are still pending;
- Windows window close.

It should also run `maui-pr-devicetests` (Controls: Modal, Shell,
General) on all platforms before merging. cc @Kebechet

### Issues Fixed

Relates to #40056 and #40116

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
This pull request resolves the test failure in
#40116 by adding the base image for
the DynamicallyAssignedIndicatorTemplateDisplaysCustomLabels test on the
iOS 18.5 platform.

Fixes: #40116

Co-authored-by: Jakub Florkowski <kubaflo123@gmail.com>
…40389 (#40512)

<!-- 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!

<!--
Open .NET 11 fix PRs against net11 for review; target main for
next-major features.
After approval, a maintainer manually retargets the fix PR to the active
inflight
branch and merges it directly there. Do not merge individual fixes into
net11.
Bots must not retarget or merge. Candidate integration into net11 and
release/*
changes are separate, explicitly coordinated release work.
-->

### Target Branch

| This PR is for | Initial base |
| --- | --- |
| New features, API changes, or .NET 12 work (including .NET 12 fixes) |
`main` |
| .NET 11 servicing fixes | `net11`, for review |
| Older servicing, release integration, infrastructure, or documentation
| The branch designated for that work |

- [x] I selected the applicable base branch using the [contribution
guide](https://github.com/dotnet/maui/blob/main/.github/CONTRIBUTING.md#choose-your-pr-base-before-starting).

This PR targets the SR2 release candidate, `candidate/11.0.1xx-sr2`.
That is where both #39898 (which added the test and baseline) and #40389
(which changed the rendering) merged. The failure exists only on the
candidate. It is the remaining deterministic UI-test failure on #40116.

For .NET 11 fixes, only a maintainer retargets the approved PR to the
active
inflight lane and merges it after CI validates that final base. Do not
merge
individual fixes directly into `net11`; agents must not retarget or
merge.

### Description of Change

Test-only change. It refreshes one Android baseline,
`TestCases.Android.Tests/snapshots/android-notch-36/Issue35410_Landscape.png`.
The test, tolerance, crop and comparer are unchanged.

**Why the baseline is stale**

- #39898 (merged 11-12) added
`Issue35410.TextRemainsVisibleAfterLandscapeRotation` and its API 36
landscape baseline.
- #40389 ("[Android] Let ScrollView content scroll under safe-area
padding", merged 11-18) made the Android ScrollView stop clipping to its
safe-area padding. Content now draws into the bottom inset while the
padding still applies at the scroll extents. That change did not update
this baseline.
- Since #40389, every candidate run of `Controls SafeAreaEdges (API 36
Pixel 3 XL)` fails this test at **0.54%**, on both the original attempt
and the in-job retry. Examples: UI builds 1688778, 1689023, 1690796,
1694038 and 1694047. The same job passed 185/185 on 1688241, the last
candidate build before #40389.

**What changed in the image** (old baseline vs CI actual, both
2960x1276)

- 89,248 pixels differ by more than 16 levels, all in the bottom 32 rows
(1244–1275). The next row's label is now drawn there instead of the page
background, which is #40389's intended behaviour.
- Above row 1244, 1,104 pixels differ, none by more than 1 level. The
notch-side horizontal inset and all visible text are unchanged, so what
#39898 protects (text staying visible and clear of the notch after
rotation) is still covered.

**The new baseline is deterministic.** It is the CI actual from
candidate UI build 1694038 (run 47304978, result 100184, attachment 11;
sha256 `c80e438e…`). It is pixel-identical (max channel difference 0) to
the actuals from build 1694047 (run 47303796) and build 1690796. Only
the PNG date metadata differs.

**Causal check.** I compiled the repo's unchanged `VisualTestUtils` +
`MagickNetVisualComparer` sources (Magick.NET-Q8-AnyCPU 14.17.2, same
0.005 threshold) into a small harness. I then compared each baseline
revision against the three independent CI actuals:

| Stage | Baseline | 1694038 actual | 1694047 actual | 1690796 actual |
| --- | --- | --- | --- | --- |
| Before (`a61b68cb`) | old | FAIL 0.54% | FAIL 0.54% | FAIL 0.54% |
| Fix (this PR) | new | PASS | PASS | PASS |
| Fix reverted | old | FAIL 0.54% | FAIL 0.54% | FAIL 0.54% |
| Restored | new | PASS | PASS | PASS |

I retried the failed job on builds 1694038 and 1694047 (runs 47309610
and 47309596), producing five more landscape actuals. All five pass
against the new baseline and fail at 0.54% against the old one.

The `Controls SafeAreaEdges (API 36 Pixel 3 XL)` job on this PR's own
UI-test CI is the on-device confirmation.

Maintainers: please confirm the new bottom-inset rendering is the
intended post-#40389 appearance (cc author of #40389). If it is not, the
fix belongs in `ScrollViewHandler.Android.cs`, not in this baseline.

### Issues Fixed

Fixes the candidate-only `Issue35410` Android API 36 UI-test failure on
#40116. There is no separate issue for it. Related: #35410, #39898,
#40389.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…40531)

<!-- 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!

<!--
Open .NET 11 fix PRs against net11 for review; target main for
next-major features.
After approval, a maintainer manually retargets the fix PR to the active
inflight
branch and merges it directly there. Do not merge individual fixes into
net11.
Bots must not retarget or merge. Candidate integration into net11 and
release/*
changes are separate, explicitly coordinated release work.
-->

### Target Branch

| This PR is for | Initial base |
| --- | --- |
| New features, API changes, or .NET 12 work (including .NET 12 fixes) |
`main` |
| .NET 11 servicing fixes | `net11`, for review |
| Older servicing, release integration, infrastructure, or documentation
| The branch designated for that work |

- [x] I selected the applicable base branch using the [contribution
guide](https://github.com/dotnet/maui/blob/main/.github/CONTRIBUTING.md#choose-your-pr-base-before-starting).

This PR targets the SR2 release candidate, `candidate/11.0.1xx-sr2`,
because this intermittent failure is the only remaining UI-test failure
on #40116 (UI build 1694858 at candidate `e3c8b2ec`). The test is the
same on `net11` and `main`, so the change applies there too.

For .NET 11 fixes, only a maintainer retargets the approved PR to the
active
inflight lane and merges it after CI validates that final base. Do not
merge
individual fixes directly into `net11`; agents must not retarget or
merge.

### Description of Change

Test-only change to `Issue2241.ChangeOrientationCheckScroll`. Product
code, the host page and the shared Appium helpers are unchanged.

**Root cause: the test reads the layout mid-rotation**

`App.SetOrientationLandscape()` / `SetOrientationPortrait()` return as
soon as the driver accepts the orientation change. They don't wait for
the rotation to finish, which on iOS animates for roughly 300–400 ms.
The test called `GetRect()` immediately after rotating back to portrait,
so it sometimes read an intermediate frame of `MainGrid` instead of the
settled layout.

- Settled portrait layout: `MainGrid` at y=211 with height 400, so
CenterY = **411** (the expected value).
- Values seen mid-animation: **249** and **251** in CI; 211–248 locally.

In the local failing runs, the page source captured at teardown shows
the grid back at x=20, y=211, 335×400 (CenterY 411). The ScrollView
layout settles correctly; only the read was early. This is not a product
regression.

**CI evidence**

- UI build 1694858 (candidate `e3c8b2ec`), `Controls (v18.5)
ScrollView`, run 47329666: `Expected: 411 But was: 249`, then `251` on
the in-job retry.
- 421 iOS ScrollView job runs scanned across `main`, `net11`, inflight,
candidate and unrelated PRs. The same assertion also failed on candidate
build 1684453 (235), #40307 (262) and #40263 (263). It is an
intermittent that occurs on every branch at about 1%, not a candidate
regression.

**Fix**

After each rotation, the new `WaitForMainGridToSettle` helper polls
`MainGrid` every 100 ms until two conditions hold:

1. The rect shows the rotated layout: wider than portrait after going to
landscape, narrower than landscape after going back.
2. The rect has been identical for two consecutive reads.

It fails with the last rect if this doesn't happen within 10 s. The
assertion itself is unchanged: portrait CenterY before and after the
scroll must be equal.

**Causal validation (local, iOS 18.5 iPhone Xs simulator — the CI
configuration)**

`dotnet test
src/Controls/tests/TestCases.iOS.Tests/Controls.TestCases.iOS.Tests.csproj
--no-build --filter "Name=ChangeOrientationCheckScroll"`, repeated in a
loop with `HEADLESS=true`:

| Stage | Test code | Result | Observed CenterY on failure |
| --- | --- | --- | --- |
| Baseline | original | **6 of 15 failed** | 211, 224, 224, 234, 224,
233 |
| Fix | this PR | **20 of 20 passed** | — |
| Trigger removed | original + `Thread.Sleep(3000)` after each rotation
| **12 of 12 passed** | — |
| Fix reverted | original | **9 of 15 failed** | 224, 233, 224, 211,
232, 248, 211, 224, 233 |
| Restored | this PR | **15 of 15 passed** | — |

Adding only a delay after rotating removes the failure, which confirms
the timing cause. The fix doesn't slow the test noticeably: it took
about 20 s per run, as before.

The test also runs on Android. On an Android API 30 emulator (the CI API
level), the fixed test passed 4 of 4 runs (4–7 s each) via `pwsh
.github/scripts/BuildAndRunHostApp.ps1 -Platform android -TestFilter
"Name=ChangeOrientationCheckScroll"`, so the rotation-and-settle wait
also holds there.

### Issues Fixed

Fixes the intermittent `Issue2241.ChangeOrientationCheckScroll` iOS
UI-test failure on #40116. There is no separate issue for it. Related:
#2241.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…aseline (#40539)

<!-- 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!

<!--
Open .NET 11 fix PRs against net11 for review; target main for
next-major features.
After approval, a maintainer manually retargets the fix PR to the active
inflight
branch and merges it directly there. Do not merge individual fixes into
net11.
Bots must not retarget or merge. Candidate integration into net11 and
release/*
changes are separate, explicitly coordinated release work.
-->

### Target Branch

| This PR is for | Initial base |
| --- | --- |
| New features, API changes, or .NET 12 work (including .NET 12 fixes) |
`main` |
| .NET 11 servicing fixes | `net11`, for review |
| Older servicing, release integration, infrastructure, or documentation
| The branch designated for that work |

- [x] I selected the applicable base branch using the [contribution
guide](https://github.com/dotnet/maui/blob/main/.github/CONTRIBUTING.md#choose-your-pr-base-before-starting).

This is a coordinated rollback on `candidate/11.0.1xx-sr2`, where both
reverted PRs landed. Their changes are not present on `net11`.

For .NET 11 fixes, only a maintainer retargets the approved PR to the
active
inflight lane and merges it after CI validates that final base. Do not
merge
individual fixes directly into `net11`; agents must not retarget or
merge.

### Description of Change

<!-- Enter description of the fix in this section -->

Restore the Android ScrollView behavior from before #40389 while the
compatibility impact and any future opt-in/opt-out design are
considered.

Revert, in reverse dependency order:

- #40512 (`e3c8b2ec8cb9e6e78a4ddf90aca9dda177c27aa5`): restore the
previous `android-notch-36/Issue35410_Landscape.png` baseline.
- #40389 (candidate commit `93995479185ce7594f4b771cc99a26745e0d23e7`):
remove the unconditional `SetClipToPadding(false)` and remove the device
test requiring content to draw under safe-area padding.

**Behavior:** ordinary Android ScrollViews once again use Android's
default padding clipping. Scrolling content no longer draws into the
native safe-area/keyboard padding bands. Existing special-case behavior,
including Shell flyout overrides, is unchanged.

The three changed paths exactly match their versions immediately before
#40389. The original issue #37306 is intentionally no longer fixed by
this change. The earlier #39898 landscape/notch fix and all unrelated
changes are preserved. Searches for #40389, #37306, clipping-related
follow-ups, and subsequent changes to the affected paths identified
#40512 as the only merged dependent follow-up.

No feature flag or review-workflow changes are included.

**Validation**

- `git diff --cached --check` - passed.
- `git diff --cached --quiet 9399547^ --
src/Core/src/Handlers/ScrollView/ScrollViewHandler.Android.cs
src/Controls/tests/DeviceTests/Elements/ScrollView/ScrollViewTests.Android.cs
src/Controls/tests/TestCases.Android.Tests/snapshots/android-notch-36/Issue35410_Landscape.png`
- passed; exact pre-change source/test/baseline restoration.
- `dotnet format whitespace --folder --include
src/Core/src/Handlers/ScrollView/ScrollViewHandler.Android.cs
--verify-no-changes` - passed.
- `dotnet build Microsoft.Maui.BuildTasks.slnf -c Release
-p:IncludeIosTargetFrameworks=false
-p:IncludeMacCatalystTargetFrameworks=false
-p:IncludeMacOSTargetFrameworks=false -v:q` - passed.
- `pwsh -NoProfile -File
.github/skills/run-device-tests/scripts/Run-DeviceTests.ps1 -Project
Controls -Platform android -TestFilter 'Category=ScrollView' -Rebuild
-OutputDirectory <session-artifacts>/scrollview-rollback-final -Timeout
00:10:00` - passed, **13 passed / 0 failed / 0 skipped**, Release arm64
Android API 34 emulator; verified from fresh result XML. The same
full-rebuild command with the candidate's production handler temporarily
restored also passed 13/13. The final source contains the rollback.

Earlier incremental attempts encountered a missing-result-file error and
`DoesNotLeak` GC failures (12/13); these are disclosed rather than
counted as passing. Both full-rebuild comparison runs passed. The
full-solution formatter could not complete with missing unrelated
project references and was stopped; the targeted formatting check above
passed. The default all-platform BuildTasks command failed because the
installed Apple workloads support 27.2 rather than the branch's 27.0;
the Android-scoped prerequisite build passed without repository
configuration changes.

The API 36 notch screenshot UI test was **not run locally**; its
baseline is restored byte-for-byte, and CI still needs to validate that
configuration.

### 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. -->

Reverts #40389 and its dependent baseline update #40512.
Related: #37306, #35410, #39898, #40116.

<!--
Verify the target branch follows the release workflow in
docs/ReleaseBranchWorkflow.md.
Infrastructure and documentation changes should target the branch where
they apply.
-->

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
<!-- 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!

### Target Branch

| This PR is for | Initial base |
| --- | --- |
| New features, API changes, or .NET 12 work (including .NET 12 fixes) |
`main` |
| .NET 11 servicing fixes | `net11`, for review |
| Older servicing, release integration, infrastructure, or documentation
| The branch designated for that work |

- [x] I selected the applicable base branch using the [contribution
guide](https://github.com/dotnet/maui/blob/main/.github/CONTRIBUTING.md#choose-your-pr-base-before-starting).

For .NET 11 fixes, only a maintainer retargets the approved PR to the
active
inflight lane and merges it after CI validates that final base. Do not
merge
individual fixes directly into `net11`; agents must not retarget or
merge.

### Description of Change

#40216 made internal (dnceng `internal`) macOS jobs install and
force-select the Xcode **27.2.0** Universal Package, because
`ACES_VM_SharedPool_GoldenGate` only had Xcode 27.0 at the time. The
image now ships Xcode 27.0, 27.1 and 27.2.

The iOS/Mac Catalyst SDK on `net11`/`main` (27.0.12230) requires exactly
Xcode 27.0, so the forced 27.2 breaks the internal `dotnet-maui-build`
pipeline (1536). For example, main build
[3143701](https://dev.azure.com/dnceng/internal/_build/results?buildId=3143701)
failed:
- **Build macOS (Debug/Release)** and **Samples macOS** (8 of 10 tests):
`This version of .NET for iOS (27.0.12230) requires Xcode 27.0. The
current version of Xcode is 27.2.`
- **RunOniOS_MauiDebug_CoreCLR**: `Simulator failed to fully boot within
timeout. Target: ios-simulator-64_27.2`.

Samples macOS fails the same way in every recent internal main run
(3143701, 3143132, 3141634, 3140674).

This PR:
- `eng/pipelines/common/provision.yml`,
`eng/pipelines/arcade/setup-test-env.yml`: `installXcodePackage` now
defaults to `false`. Internal jobs select the image's `$(XCODE)` (27.0)
exactly like public CI. The package path stays available as an opt-in.
- `docs/DevelopmentTips.md`: documents the behavior.

Side benefit: it removes the package download and install (about 1
minute) from each internal macOS job.

### Validation

- YAML parse of both changed templates: passed.
- Internal `dotnet-maui-build` run on a mirror of this branch: [build
3144121](https://dev.azure.com/dnceng/internal/_build/results?buildId=3144121):
all macOS jobs **succeeded** — Build macOS (Debug/Release), Samples
macOS, Pack macOS, Blazor/AOT/MultiProject macOS, and all 10 RunOniOS
lanes (previously failing in main build 3143701).

### Issues Fixed

Fixes internal `dotnet-maui-build` macOS failures introduced by #40216
after the GoldenGate Xcode 27.2 image rollout.

---------
<!-- 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!

<!--
Open .NET 11 fix PRs against net11 for review; target main for
next-major features.
After approval, a maintainer manually retargets the fix PR to the active
inflight
branch and merges it directly there. Do not merge individual fixes into
net11.
Bots must not retarget or merge. Candidate integration into net11 and
release/*
changes are separate, explicitly coordinated release work.
-->

### Target Branch

| This PR is for | Initial base |
| --- | --- |
| New features, API changes, or .NET 12 work (including .NET 12 fixes) |
`main` |
| .NET 11 servicing fixes | `net11`, for review |
| Older servicing, release integration, infrastructure, or documentation
| The branch designated for that work |

- [ ] I selected the applicable base branch using the [contribution
guide](https://github.com/dotnet/maui/blob/main/.github/CONTRIBUTING.md#choose-your-pr-base-before-starting).

For .NET 11 fixes, only a maintainer retargets the approved PR to the
active
inflight lane and merges it after CI validates that final base. Do not
merge
individual fixes directly into `net11`; agents must not retarget or
merge.

### Description of Change

<!-- Enter description of the fix in this section -->

<!-- maui-release-tracking:production:candidate -->

Tracks **`candidate/11.0.1xx-sr2` into `net11`**.

Current release integration. Merge only after normal release review and
validation. Use Create a merge commit, not squash or rebase: next-lane
preparation verifies the exact two-parent candidate integration.

#### Release workflow

The highlighted branch is the lane tracked by this PR.

```mermaid
flowchart LR
    Candidate["candidate/11.0.1xx-sr2"] -->|Release integration| Fixes["net11"]
    Inflight["inflight/11.0.1xx-sr3"] -.->|Next release preview only| Fixes
    Fixes -->|Pin approved source| Staging["automation/release/11.0.1xx-sr2"]
    Staging -->|Review servicing PR and Create a merge commit| Reviewed["Reviewed servicing merge on staging"]
    Reviewed -->|Maintainer manually cuts at exact merge| Release["release/11.0.1xx-sr2"]
    Fixes -->|Daily forward merge| Features["main (features)"]
    Inflight -->|Signed nightlies after cutover| Feed["ci.inflight dogfood feed"]
    style Candidate stroke:#2563eb,stroke-width:3px
```

**Status:** draft tracking PR, not a release approval. Normal review and
CI are required before integration. Versioned nightlies retain the
legacy stream until the internal cutover is verified.

The candidate retains CI settings and includes the upcoming version in
both bug-template dropdowns. After its approved merge, automation pins
automation/release and independently opens reviewed next-cycle CI
normalization on net11. The publication workflow automatically opens a
servicing/stable configuration PR against automation/release. Review it
and merge using Create a merge commit, then manually create the real
release branch at that exact reviewed servicing merge commit. No second
post-cut servicing PR is opened.

After reviewed normalization, the same workflow prepares the next
candidate/inflight branches, draft PR pair and canonical state PR
without waiting for servicing review or a real release cut. Publication
waits for the exact reviewed staging merge to be manually cut and
verifies the receipt, human approvals, two-parent merge and exact
internal mirror. Public package publishing remains explicitly approved.

### 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. -->

N/A - release integration tracking.

<!--
Verify the target branch follows the release workflow in
docs/ReleaseBranchWorkflow.md.
Infrastructure and documentation changes should target the branch where
they apply.
-->

Co-authored-by: Jakub Florkowski <kubaflo123@gmail.com>
<!-- 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!
<!--
Open .NET 11 fix PRs against net11 for review; target main for
next-major features.
After approval, a maintainer manually retargets the fix PR to the active
inflight
branch and merges it directly there. Do not merge individual fixes into
net11.
Bots must not retarget or merge. Candidate integration into net11 and
release/*
changes are separate, explicitly coordinated release work.
-->

### Target Branch

| This PR is for | Initial base |
| --- | --- |
| New features, API changes, or .NET 12 work (including .NET 12 fixes) |
`main` |
| .NET 11 servicing fixes | `net11`, for review |
| Older servicing, release integration, infrastructure, or documentation
| The branch designated for that work |

- [ ] I selected the applicable base branch using the [contribution
guide](https://github.com/dotnet/maui/blob/main/.github/CONTRIBUTING.md#choose-your-pr-base-before-starting).

For .NET 11 fixes, only a maintainer retargets the approved PR to the
active
inflight lane and merges it after CI validates that final base. Do not
merge
individual fixes directly into `net11`; agents must not retarget or
merge.

### Description of Change

<!-- Enter description of the fix in this section -->

<!-- maui-release-normalization:production:11.0.1xx-sr2 -->

Restore **`net11`** to the next-cycle CI version after pinning the exact
SR2 staging source.

Approved candidate merge: `cb744cbefe0ca371b6331e5afb711bd03ce1c37d`.
Prepared normalization: `084e9e5a4ce38d205bf9f9cdc6933fbddf7c91e7`.
This pinned child commit changes only version metadata: patch 30,
CI/non-stable settings, and that same plain version in both bug-template
dropdowns. SDK band and release contents are unchanged.

**A maintainer must review this PR, run required CI and use Create a
merge commit. Do not squash or rebase.**
The reconciler does not update the protected integration ref, approve,
retarget or merge this PR. Next-lane activation and forward-flow
preparation wait for the normalization ancestry to be verified.
The automation/release staging ref starts at this candidate source and
advances through its separately reviewed servicing PR. A newer
maintainer candidate merge supersedes the old generation, never a
concurrent unrelated edit. After servicing is merged with Create a merge
commit, the real release branch is manually cut at its exact merge. This
normalization PR does not authorize signing.

### 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. -->

N/A - staged release configuration.

<!--
Verify the target branch follows the release workflow in
docs/ReleaseBranchWorkflow.md.
Infrastructure and documentation changes should target the branch where
they apply.
-->

Co-authored-by: Jakub Florkowski <kubaflo123@gmail.com>
<!-- 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!
<!--
Open .NET 11 fix PRs against net11 for review; target main for
next-major features.
After approval, a maintainer manually retargets the fix PR to the active
inflight
branch and merges it directly there. Do not merge individual fixes into
net11.
Bots must not retarget or merge. Candidate integration into net11 and
release/*
changes are separate, explicitly coordinated release work.
-->

### Target Branch

| This PR is for | Initial base |
| --- | --- |
| New features, API changes, or .NET 12 work (including .NET 12 fixes) |
`main` |
| .NET 11 servicing fixes | `net11`, for review |
| Older servicing, release integration, infrastructure, or documentation
| The branch designated for that work |

- [ ] I selected the applicable base branch using the [contribution
guide](https://github.com/dotnet/maui/blob/main/.github/CONTRIBUTING.md#choose-your-pr-base-before-starting).

For .NET 11 fixes, only a maintainer retargets the approved PR to the
active
inflight lane and merges it after CI validates that final base. Do not
merge
individual fixes directly into `net11`; agents must not retarget or
merge.

### Description of Change

<!-- Enter description of the fix in this section -->

<!-- maui-release-normalization:production:11.0.1xx-sr2 -->

Restore **`net11`** to the next-cycle CI version after pinning the exact
SR2 staging source.

Approved candidate merge: `cb744cbefe0ca371b6331e5afb711bd03ce1c37d`.
Prepared normalization: `084e9e5a4ce38d205bf9f9cdc6933fbddf7c91e7`.
This pinned child commit changes only version metadata: patch 30,
CI/non-stable settings, and that same plain version in both bug-template
dropdowns. SDK band and release contents are unchanged.

**A maintainer must review this PR, run required CI and use Create a
merge commit. Do not squash or rebase.**
The reconciler does not update the protected integration ref, approve,
retarget or merge this PR. Next-lane activation and forward-flow
preparation wait for the normalization ancestry to be verified.
The automation/release staging ref starts at this candidate source and
advances through its separately reviewed servicing PR. A newer
maintainer candidate merge supersedes the old generation, never a
concurrent unrelated edit. After servicing is merged with Create a merge
commit, the real release branch is manually cut at its exact merge. This
normalization PR does not authorize signing.

Replaces #40563, which landed the same tree without the pinned commit
(squash or rebase merge). This PR may show no remaining file changes;
merging it with Create a merge commit records the required ancestry.

### 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. -->

N/A - staged release configuration.

<!--
Verify the target branch follows the release workflow in
docs/ReleaseBranchWorkflow.md.
Infrastructure and documentation changes should target the branch where
they apply.
-->

Co-authored-by: Jakub Florkowski <kubaflo123@gmail.com>
… height (#40574)

<!-- 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!

<!--
Open .NET 11 fix PRs against net11 for review; target main for
next-major features.
After approval, a maintainer manually retargets the fix PR to the active
inflight
branch and merges it directly there. Do not merge individual fixes into
net11.
Bots must not retarget or merge. Candidate integration into net11 and
release/*
changes are separate, explicitly coordinated release work.
-->

### Target Branch

| This PR is for | Initial base |
| --- | --- |
| New features, API changes, or .NET 12 work (including .NET 12 fixes) |
`main` |
| .NET 11 servicing fixes | `net11`, for review |
| Older servicing, release integration, infrastructure, or documentation
| The branch designated for that work |

- [x] I selected the applicable base branch using the [contribution
guide](https://github.com/dotnet/maui/blob/main/.github/CONTRIBUTING.md#choose-your-pr-base-before-starting).

For .NET 11 fixes, only a maintainer retargets the approved PR to the
active
inflight lane and merges it after CI validates that final base. Do not
merge
individual fixes directly into `net11`; agents must not retarget or
merge.

### Description of Change

<!-- Enter description of the fix in this section -->

Ports the exact fix and regression tests from #40572 to `net11` for
review. Original fix by @devanathan-vaithiyanathan. The SR2 PR remains
separate.

For horizontal Grid CollectionViews on iOS and Mac Catalyst, measure the
first available item when the height is unbounded, skip empty leading
groups, and account for the row span and vertical spacing. The existing
linear and finite-height behavior is unchanged. Regression coverage
includes a four-row grid in an Auto row and a grouped grid with an empty
first group.

The local iOS device-test build was blocked by a missing workload in the
repository SDK (NETSDK1147), so the simulator tests did not run. Mac
Catalyst was not run locally.

### 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 #40466

<!--
Verify the target branch follows the release workflow in
docs/ReleaseBranchWorkflow.md.
Infrastructure and documentation changes should target the branch where
they apply.
-->

Co-authored-by: devanathan-vaithiyanathan <114395405+devanathan-vaithiyanathan@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@kubaflo
kubaflo temporarily deployed to copilot-pat-pool November 24, 2026 13:39 — with GitHub Actions Inactive
@github-actions

Copy link
Copy Markdown
Contributor

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 40576

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 40576"

@kubaflo
kubaflo temporarily deployed to copilot-pat-pool November 24, 2026 13:39 — with GitHub Actions Inactive
@azure-pipelines

This comment has been minimized.

@github-actions

Copy link
Copy Markdown
Contributor

Skill Validation Results

@kubaflo — new skill validation results are available based on this last commit: 5a03607.
To request a fresh validation after new comments or commits, comment /evaluate-skills.

Overall Passed Static Passed LLM Skipped Skills 27 Agents 7

✅ Skill Validation Results — 5a03607 · [Forward fixes] net11 to main (manual) · 2026-11-24T13:40:28Z

✅ Static Checks Passed

Skills: 27 | Eval specs linted: 17

Full lint output
── .github/skills/agentic-labeler/tests/eval.vally.yaml
npm warn deprecated @github/copilot-sdk@1.0.34: Deprecated: migrate to @microsoft/copilot-sdk. Migration docs: https://github.com/microsoft/copilot-sdk/blob/main/docs/v2-breaking-changes.md
npm warn deprecated @github/copilot-sdk-linux-x64@1.0.34: Legacy platform dependency. Migrate the parent SDK to @microsoft/copilot-sdk. Migration docs: https://github.com/microsoft/copilot-sdk/blob/main/docs/v2-breaking-changes.md
Vally collects pseudonymous usage telemetry (command name, version, outcome, duration, persistent device identifier (when available), and coarse OS/runtime info) to improve the product. No prompts, datasets, file paths, or arguments are collected.
Opt out any time by setting VALLY_TELEMETRY_OPTOUT=1 or DO_NOT_TRACK=1.
Learn more: https://aka.ms/vally/telemetry
✔ .github/skills/agentic-labeler/tests/eval.vally.yaml is valid
── .github/skills/analyze-sessions/tests/eval.vally.yaml
✔ .github/skills/analyze-sessions/tests/eval.vally.yaml is valid
── .github/skills/ci-fix/tests/eval.ownership.vally.yaml
✔ .github/skills/ci-fix/tests/eval.ownership.vally.yaml is valid
── .github/skills/ci-fix/tests/eval.vally.yaml
✔ .github/skills/ci-fix/tests/eval.vally.yaml is valid
── .github/skills/code-review/tests/eval.inline-findings.vally.yaml
✔ .github/skills/code-review/tests/eval.inline-findings.vally.yaml is valid
── .github/skills/code-review/tests/eval.producer-trace.vally.yaml
✔ .github/skills/code-review/tests/eval.producer-trace.vally.yaml is valid
── .github/skills/code-review/tests/eval.trim-aot.vally.yaml
✔ .github/skills/code-review/tests/eval.trim-aot.vally.yaml is valid
── .github/skills/code-review/tests/eval.vally.yaml
✔ .github/skills/code-review/tests/eval.vally.yaml is valid
── .github/skills/code-review/tests/hermeticity.vally.yaml
✔ .github/skills/code-review/tests/hermeticity.vally.yaml is valid
── .github/skills/code-review/tests/soak.capability.vally.yaml
✔ .github/skills/code-review/tests/soak.capability.vally.yaml is valid
── .github/skills/evaluate-pr-tests/tests/eval.vally.yaml
✔ .github/skills/evaluate-pr-tests/tests/eval.vally.yaml is valid
── .github/skills/pr-review/tests/eval.gh-auth.vally.yaml
✔ .github/skills/pr-review/tests/eval.gh-auth.vally.yaml is valid
── .github/skills/review-test-failures/tests/eval.vally.yaml
✔ .github/skills/review-test-failures/tests/eval.vally.yaml is valid
── .github/skills/try-fix/tests/eval.restore.vally.yaml
✔ .github/skills/try-fix/tests/eval.restore.vally.yaml is valid
── .github/skills/try-fix/tests/eval.vally.yaml
✔ .github/skills/try-fix/tests/eval.vally.yaml is valid
── .github/skills/verify-tests-fail-without-fix/tests/eval.protocol.vally.yaml
✔ .github/skills/verify-tests-fail-without-fix/tests/eval.protocol.vally.yaml is valid
── .github/skills/verify-tests-fail-without-fix/tests/eval.vally.yaml
✔ .github/skills/verify-tests-fail-without-fix/tests/eval.vally.yaml is valid

⏭️ LLM Evaluation: Skipped

No changed skills with eval specs found.

🔍 Full results and investigation steps

@kubaflo
kubaflo temporarily deployed to copilot-pat-pool November 24, 2026 13:40 — with GitHub Actions Inactive
@kubaflo
kubaflo temporarily deployed to copilot-pat-pool November 24, 2026 13:42 — with GitHub Actions Inactive
@kubaflo
kubaflo temporarily deployed to copilot-pat-pool November 24, 2026 13:43 — with GitHub Actions Inactive
@kubaflo
kubaflo temporarily deployed to copilot-pat-pool November 24, 2026 13:44 — with GitHub Actions Inactive
@kubaflo kubaflo mentioned this pull request Nov 24, 2026
1 task done
@kubaflo
kubaflo temporarily deployed to copilot-pat-pool November 24, 2026 13:54 — with GitHub Actions Inactive
@kubaflo

kubaflo commented Nov 24, 2026

Copy link
Copy Markdown
Contributor Author

Replaced by #40577, which uses net11 directly as the source branch.

@kubaflo kubaflo closed this Nov 24, 2026
@kubaflo
kubaflo temporarily deployed to copilot-pat-pool November 24, 2026 13:54 — with GitHub Actions Inactive
@kubaflo
kubaflo temporarily deployed to copilot-pat-pool November 24, 2026 13:56 — with GitHub Actions Inactive
@kubaflo
kubaflo temporarily deployed to copilot-pat-pool November 24, 2026 13:58 — with GitHub Actions Inactive
@kubaflo
kubaflo temporarily deployed to copilot-pat-pool November 24, 2026 14:00 — with GitHub Actions Inactive
@kubaflo
kubaflo temporarily deployed to copilot-pat-pool November 24, 2026 14:00 — with GitHub Actions Inactive
kubaflo added a commit to kubaflo/maui that referenced this pull request Nov 24, 2026
<!-- 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!

<!--
Open .NET 11 fix PRs against net11 for review; target main for
next-major features.
After approval, a maintainer manually retargets the fix PR to the active
inflight
branch and merges it directly there. Do not merge individual fixes into
net11.
Bots must not retarget or merge. Candidate integration into net11 and
release/*
changes are separate, explicitly coordinated release work.
-->

### Target Branch

| This PR is for | Initial base |
| --- | --- |
| New features, API changes, or .NET 12 work (including .NET 12 fixes) |
`main` |
| .NET 11 servicing fixes | `net11`, for review |
| Older servicing, release integration, infrastructure, or documentation
| The branch designated for that work |

- [x] I selected the applicable base branch using the [contribution
guide](https://github.com/dotnet/maui/blob/main/.github/CONTRIBUTING.md#choose-your-pr-base-before-starting).

For .NET 11 fixes, only a maintainer retargets the approved PR to the
active
inflight lane and merges it after CI validates that final base. Do not
merge
individual fixes directly into `net11`; agents must not retarget or
merge.

### Description of Change

<!-- Enter description of the fix in this section -->

Manually forward `net11` to `main`, including the SR2 candidate
integration and subsequent changes. Both branches currently use .NET 11;
this PR is intentionally opened before the automated forward workflow's
.NET 12 gate. It replaces dotnet#40576 and uses the live `net11` branch as its
head, so new `net11` commits appear automatically.

At creation, `net11` was `5a03607dade32bb138c5fc81ac846bd8cfa9ec82` and
`main` was `59d49f94d2197216d1762cb219dbf00985f49802`. The proposed
merge changes 638 files, updates the patch version from 11.0.20 to
11.0.30, and changes SDK and dependency versions. Review the full
current diff before merging.

**Branch safety:** GitHub automatic head-branch deletion is enabled for
this repository and `net11` currently has no branch protection or rules.
Ensure `net11` cannot be deleted automatically before merging this PR.
Unlike the automated workflow, this PR uses the actual servicing branch
as its head.

**Validation**

- `git merge-tree --write-tree 59d49f9
5a03607` - passed without conflicts for
the creation snapshots.
- Local build and tests were not run. Required review and CI must
validate the current integration before a maintainer merges 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. -->

N/A - forward integration of changes already reviewed on `net11`.

<!--
Verify the target branch follows the release workflow in
docs/ReleaseBranchWorkflow.md.
Infrastructure and documentation changes should target the branch where
they apply.
-->

Co-authored-by: Jakub Florkowski <kubaflo123@gmail.com>

This branch was previously deployed

1 inactive deployment
copilot-pat-pool — 5a03607d Deployed Nov 24, 2026 by kubaflo via conclusion #3257
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.