Skip to content

[iOS/MacCatalyst] Fix candidate CollectionView scroll-helper compilation - #40196

Merged
kubaflo merged 1 commit into
candidate/11.0.1xx-sr2from
kubaflo-candidate-apple-build-repair
Nov 12, 2026
Merged

kubaflo merged 1 commit into
candidate/11.0.1xx-sr2from
kubaflo-candidate-apple-build-repair

Conversation

@kubaflo

@kubaflo kubaflo commented Nov 12, 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.

This is the explicitly coordinated candidate-integration build repair for #40116, targeting candidate/11.0.1xx-sr2. The helper introduced by #39493 is not on net11 or main; this PR changes only its three affected source files and does not import candidate contents into another branch.

Description of Change

#39493 introduced ItemsViewScrollHelper, a non-obsolete shared helper whose CarouselView guard references the obsolete legacy CarouselViewController. With the repository's warnings-as-errors policy, this produces CS0618 in Controls.Core for both net11.0-ios27.0 and net11.0-maccatalyst27.0, preventing the UI sample from compiling.

Move the CarouselView exclusions to the corresponding layout callbacks:

  • The already-obsolete legacy ItemsViewLayout checks CarouselViewController.
  • The current compositional layout checks CarouselViewController2.
  • The shared helper no longer depends on either controller. Its nullable collection parameter explicitly preserves the existing null/no-op path.

Both built-in CarouselView handlers remain excluded from first-item scrolling. CollectionView scrolling, empty-section handling, RTL alignment, and KeepLastItemInView are unchanged. There are no public API changes, warning suppressions, test-assertion changes, or pipeline changes.

Validation

Validated with the candidate's SDK 11.0.101 (global.json provisioning version 11.0.101-servicing.26559.106) and pinned iOS/MacCatalyst SDK 27.0.12230. The reversible check ran on candidate 0be82c01b9f9dcc5d58684fa92fb493b0e8f9625; the final committed build also passed after refreshing onto candidate 03a6ec676c.

.dotnet/dotnet build src/Controls/src/Core/Controls.Core.csproj -c Release \
  -p:IncludeAndroidTargetFrameworks=false -p:IncludeMacOSTargetFrameworks=false \
  -p:IncludeIosTargetFrameworks=true -p:IncludeMacCatalystTargetFrameworks=true \
  -p:TreatWarningsAsErrors=true -v:quiet

Passed: 0 warnings, 0 errors, including both native Apple target frameworks. The causal check was baseline red (the two CS0618 errors), repair green, complete repair reversion red after refreshing the candidate (the same two errors), and restored repair green. Commit 170cdfbcf8 was compiled successfully before pushing.

.dotnet/dotnet format whitespace --folder \
  --include src/Controls/src/Core/Handlers/Items/iOS/ItemsViewLayout.cs \
    src/Controls/src/Core/Handlers/Items/iOS/ItemsViewScrollHelper.cs \
    src/Controls/src/Core/Handlers/Items2/iOS/LayoutFactory2.cs \
  --exclude Templates/src --verify-no-changes --verbosity minimal
git diff --check

Passed.

Full UI-host packaging/runtime limitation: an additional iOS simulator HostApp build stopped at the Apple SDK's toolchain check: SDK 27.0.12230 requires Xcode 27.0, while this machine has Xcode 27.1/27.2. The check was not bypassed. Native Controls.Core compilation above is verified; full HostApp packaging and runtime/UI tests are not claimed.

Issues Fixed

Relates to #40116. Repairs the Apple compilation regression introduced by #39493.

Original CI evidence: maui-pr-uitests build 1677816, Build Sample App log 188, showing ItemsViewScrollHelper.cs(26,63): error CS0618 for both native Apple TFMs.

Keep CarouselView exclusions in each handler layout so the shared scroll helper does not reference obsolete controller APIs.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@kubaflo
kubaflo temporarily deployed to copilot-pat-pool November 12, 2026 20:51 — with GitHub Actions Inactive
@azure-pipelines

This comment has been minimized.

@kubaflo
kubaflo temporarily deployed to copilot-pat-pool November 12, 2026 20:51 — with GitHub Actions Inactive
@kubaflo
kubaflo temporarily deployed to copilot-pat-pool November 12, 2026 20:52 — with GitHub Actions Inactive
@kubaflo
kubaflo merged commit 558fccc into candidate/11.0.1xx-sr2 Nov 12, 2026
7 of 17 checks passed
@kubaflo
kubaflo deleted the kubaflo-candidate-apple-build-repair branch November 12, 2026 20:53
@kubaflo
kubaflo temporarily deployed to copilot-pat-pool November 12, 2026 20:54 — with GitHub Actions Inactive
@kubaflo
kubaflo temporarily deployed to copilot-pat-pool November 12, 2026 20:56 — with GitHub Actions Inactive
@kubaflo
kubaflo temporarily deployed to copilot-pat-pool November 12, 2026 20:56 — with GitHub Actions Inactive
kubaflo added a commit that referenced this pull request Nov 13, 2026
…ion (#40196)

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

This is the explicitly coordinated **candidate-integration build
repair** for #40116, targeting `candidate/11.0.1xx-sr2`. The helper
introduced by #39493 is not on `net11` or `main`; this PR changes only
its three affected source files and does not import candidate contents
into another branch.

### Description of Change

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

#39493 introduced `ItemsViewScrollHelper`, a non-obsolete shared helper
whose CarouselView guard references the obsolete legacy
`CarouselViewController`. With the repository's warnings-as-errors
policy, this produces `CS0618` in `Controls.Core` for both
`net11.0-ios27.0` and `net11.0-maccatalyst27.0`, preventing the UI
sample from compiling.

Move the CarouselView exclusions to the corresponding layout callbacks:

- The already-obsolete legacy `ItemsViewLayout` checks
`CarouselViewController`.
- The current compositional layout checks `CarouselViewController2`.
- The shared helper no longer depends on either controller. Its nullable
collection parameter explicitly preserves the existing null/no-op path.

Both built-in CarouselView handlers remain excluded from first-item
scrolling. CollectionView scrolling, empty-section handling, RTL
alignment, and `KeepLastItemInView` are unchanged. There are no public
API changes, warning suppressions, test-assertion changes, or pipeline
changes.

#### Validation

Validated with the candidate's SDK **11.0.101** (`global.json`
provisioning version `11.0.101-servicing.26559.106`) and pinned
iOS/MacCatalyst SDK **27.0.12230**. The reversible check ran on
candidate `0be82c01b9f9dcc5d58684fa92fb493b0e8f9625`; the final
committed build also passed after refreshing onto candidate
`03a6ec676c`.

```sh
.dotnet/dotnet build src/Controls/src/Core/Controls.Core.csproj -c Release \
  -p:IncludeAndroidTargetFrameworks=false -p:IncludeMacOSTargetFrameworks=false \
  -p:IncludeIosTargetFrameworks=true -p:IncludeMacCatalystTargetFrameworks=true \
  -p:TreatWarningsAsErrors=true -v:quiet
```

**Passed: 0 warnings, 0 errors**, including both native Apple target
frameworks. The causal check was baseline red (the two `CS0618` errors),
repair green, complete repair reversion red after refreshing the
candidate (the same two errors), and restored repair green. Commit
`170cdfbcf8` was compiled successfully before pushing.

```sh
.dotnet/dotnet format whitespace --folder \
  --include src/Controls/src/Core/Handlers/Items/iOS/ItemsViewLayout.cs \
    src/Controls/src/Core/Handlers/Items/iOS/ItemsViewScrollHelper.cs \
    src/Controls/src/Core/Handlers/Items2/iOS/LayoutFactory2.cs \
  --exclude Templates/src --verify-no-changes --verbosity minimal
git diff --check
```

**Passed.**

**Full UI-host packaging/runtime limitation:** an additional iOS
simulator HostApp build stopped at the Apple SDK's toolchain check: SDK
`27.0.12230` requires **Xcode 27.0**, while this machine has Xcode
27.1/27.2. The check was not bypassed. Native `Controls.Core`
compilation above is verified; full HostApp packaging and runtime/UI
tests are not claimed.

### 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 #40116. Repairs the Apple compilation regression introduced
by #39493.

Original CI evidence: [maui-pr-uitests build 1677816, Build Sample App
log
188](https://dev.azure.com/dnceng-public/public/_apis/build/builds/1677816/logs/188),
showing `ItemsViewScrollHelper.cs(26,63): error CS0618` for both native
Apple TFMs.

<!--
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>
kubaflo added a commit that referenced this pull request Nov 16, 2026
…ion (#40196)

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

This is the explicitly coordinated **candidate-integration build
repair** for #40116, targeting `candidate/11.0.1xx-sr2`. The helper
introduced by #39493 is not on `net11` or `main`; this PR changes only
its three affected source files and does not import candidate contents
into another branch.

### Description of Change

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

#39493 introduced `ItemsViewScrollHelper`, a non-obsolete shared helper
whose CarouselView guard references the obsolete legacy
`CarouselViewController`. With the repository's warnings-as-errors
policy, this produces `CS0618` in `Controls.Core` for both
`net11.0-ios27.0` and `net11.0-maccatalyst27.0`, preventing the UI
sample from compiling.

Move the CarouselView exclusions to the corresponding layout callbacks:

- The already-obsolete legacy `ItemsViewLayout` checks
`CarouselViewController`.
- The current compositional layout checks `CarouselViewController2`.
- The shared helper no longer depends on either controller. Its nullable
collection parameter explicitly preserves the existing null/no-op path.

Both built-in CarouselView handlers remain excluded from first-item
scrolling. CollectionView scrolling, empty-section handling, RTL
alignment, and `KeepLastItemInView` are unchanged. There are no public
API changes, warning suppressions, test-assertion changes, or pipeline
changes.

#### Validation

Validated with the candidate's SDK **11.0.101** (`global.json`
provisioning version `11.0.101-servicing.26559.106`) and pinned
iOS/MacCatalyst SDK **27.0.12230**. The reversible check ran on
candidate `0be82c01b9f9dcc5d58684fa92fb493b0e8f9625`; the final
committed build also passed after refreshing onto candidate
`03a6ec676c`.

```sh
.dotnet/dotnet build src/Controls/src/Core/Controls.Core.csproj -c Release \
  -p:IncludeAndroidTargetFrameworks=false -p:IncludeMacOSTargetFrameworks=false \
  -p:IncludeIosTargetFrameworks=true -p:IncludeMacCatalystTargetFrameworks=true \
  -p:TreatWarningsAsErrors=true -v:quiet
```

**Passed: 0 warnings, 0 errors**, including both native Apple target
frameworks. The causal check was baseline red (the two `CS0618` errors),
repair green, complete repair reversion red after refreshing the
candidate (the same two errors), and restored repair green. Commit
`170cdfbcf8` was compiled successfully before pushing.

```sh
.dotnet/dotnet format whitespace --folder \
  --include src/Controls/src/Core/Handlers/Items/iOS/ItemsViewLayout.cs \
    src/Controls/src/Core/Handlers/Items/iOS/ItemsViewScrollHelper.cs \
    src/Controls/src/Core/Handlers/Items2/iOS/LayoutFactory2.cs \
  --exclude Templates/src --verify-no-changes --verbosity minimal
git diff --check
```

**Passed.**

**Full UI-host packaging/runtime limitation:** an additional iOS
simulator HostApp build stopped at the Apple SDK's toolchain check: SDK
`27.0.12230` requires **Xcode 27.0**, while this machine has Xcode
27.1/27.2. The check was not bypassed. Native `Controls.Core`
compilation above is verified; full HostApp packaging and runtime/UI
tests are not claimed.

### 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 #40116. Repairs the Apple compilation regression introduced
by #39493.

Original CI evidence: [maui-pr-uitests build 1677816, Build Sample App
log
188](https://dev.azure.com/dnceng-public/public/_apis/build/builds/1677816/logs/188),
showing `ItemsViewScrollHelper.cs(26,63): error CS0618` for both native
Apple TFMs.

<!--
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>
kubaflo added a commit that referenced this pull request Nov 16, 2026
…ion (#40196)

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

This is the explicitly coordinated **candidate-integration build
repair** for #40116, targeting `candidate/11.0.1xx-sr2`. The helper
introduced by #39493 is not on `net11` or `main`; this PR changes only
its three affected source files and does not import candidate contents
into another branch.

### Description of Change

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

#39493 introduced `ItemsViewScrollHelper`, a non-obsolete shared helper
whose CarouselView guard references the obsolete legacy
`CarouselViewController`. With the repository's warnings-as-errors
policy, this produces `CS0618` in `Controls.Core` for both
`net11.0-ios27.0` and `net11.0-maccatalyst27.0`, preventing the UI
sample from compiling.

Move the CarouselView exclusions to the corresponding layout callbacks:

- The already-obsolete legacy `ItemsViewLayout` checks
`CarouselViewController`.
- The current compositional layout checks `CarouselViewController2`.
- The shared helper no longer depends on either controller. Its nullable
collection parameter explicitly preserves the existing null/no-op path.

Both built-in CarouselView handlers remain excluded from first-item
scrolling. CollectionView scrolling, empty-section handling, RTL
alignment, and `KeepLastItemInView` are unchanged. There are no public
API changes, warning suppressions, test-assertion changes, or pipeline
changes.

#### Validation

Validated with the candidate's SDK **11.0.101** (`global.json`
provisioning version `11.0.101-servicing.26559.106`) and pinned
iOS/MacCatalyst SDK **27.0.12230**. The reversible check ran on
candidate `0be82c01b9f9dcc5d58684fa92fb493b0e8f9625`; the final
committed build also passed after refreshing onto candidate
`03a6ec676c`.

```sh
.dotnet/dotnet build src/Controls/src/Core/Controls.Core.csproj -c Release \
  -p:IncludeAndroidTargetFrameworks=false -p:IncludeMacOSTargetFrameworks=false \
  -p:IncludeIosTargetFrameworks=true -p:IncludeMacCatalystTargetFrameworks=true \
  -p:TreatWarningsAsErrors=true -v:quiet
```

**Passed: 0 warnings, 0 errors**, including both native Apple target
frameworks. The causal check was baseline red (the two `CS0618` errors),
repair green, complete repair reversion red after refreshing the
candidate (the same two errors), and restored repair green. Commit
`170cdfbcf8` was compiled successfully before pushing.

```sh
.dotnet/dotnet format whitespace --folder \
  --include src/Controls/src/Core/Handlers/Items/iOS/ItemsViewLayout.cs \
    src/Controls/src/Core/Handlers/Items/iOS/ItemsViewScrollHelper.cs \
    src/Controls/src/Core/Handlers/Items2/iOS/LayoutFactory2.cs \
  --exclude Templates/src --verify-no-changes --verbosity minimal
git diff --check
```

**Passed.**

**Full UI-host packaging/runtime limitation:** an additional iOS
simulator HostApp build stopped at the Apple SDK's toolchain check: SDK
`27.0.12230` requires **Xcode 27.0**, while this machine has Xcode
27.1/27.2. The check was not bypassed. Native `Controls.Core`
compilation above is verified; full HostApp packaging and runtime/UI
tests are not claimed.

### 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 #40116. Repairs the Apple compilation regression introduced
by #39493.

Original CI evidence: [maui-pr-uitests build 1677816, Build Sample App
log
188](https://dev.azure.com/dnceng-public/public/_apis/build/builds/1677816/logs/188),
showing `ItemsViewScrollHelper.cs(26,63): error CS0618` for both native
Apple TFMs.

<!--
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>
kubaflo added a commit that referenced this pull request Nov 17, 2026
…ion (#40196)

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

This is the explicitly coordinated **candidate-integration build
repair** for #40116, targeting `candidate/11.0.1xx-sr2`. The helper
introduced by #39493 is not on `net11` or `main`; this PR changes only
its three affected source files and does not import candidate contents
into another branch.

### Description of Change

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

#39493 introduced `ItemsViewScrollHelper`, a non-obsolete shared helper
whose CarouselView guard references the obsolete legacy
`CarouselViewController`. With the repository's warnings-as-errors
policy, this produces `CS0618` in `Controls.Core` for both
`net11.0-ios27.0` and `net11.0-maccatalyst27.0`, preventing the UI
sample from compiling.

Move the CarouselView exclusions to the corresponding layout callbacks:

- The already-obsolete legacy `ItemsViewLayout` checks
`CarouselViewController`.
- The current compositional layout checks `CarouselViewController2`.
- The shared helper no longer depends on either controller. Its nullable
collection parameter explicitly preserves the existing null/no-op path.

Both built-in CarouselView handlers remain excluded from first-item
scrolling. CollectionView scrolling, empty-section handling, RTL
alignment, and `KeepLastItemInView` are unchanged. There are no public
API changes, warning suppressions, test-assertion changes, or pipeline
changes.

#### Validation

Validated with the candidate's SDK **11.0.101** (`global.json`
provisioning version `11.0.101-servicing.26559.106`) and pinned
iOS/MacCatalyst SDK **27.0.12230**. The reversible check ran on
candidate `0be82c01b9f9dcc5d58684fa92fb493b0e8f9625`; the final
committed build also passed after refreshing onto candidate
`03a6ec676c`.

```sh
.dotnet/dotnet build src/Controls/src/Core/Controls.Core.csproj -c Release \
  -p:IncludeAndroidTargetFrameworks=false -p:IncludeMacOSTargetFrameworks=false \
  -p:IncludeIosTargetFrameworks=true -p:IncludeMacCatalystTargetFrameworks=true \
  -p:TreatWarningsAsErrors=true -v:quiet
```

**Passed: 0 warnings, 0 errors**, including both native Apple target
frameworks. The causal check was baseline red (the two `CS0618` errors),
repair green, complete repair reversion red after refreshing the
candidate (the same two errors), and restored repair green. Commit
`170cdfbcf8` was compiled successfully before pushing.

```sh
.dotnet/dotnet format whitespace --folder \
  --include src/Controls/src/Core/Handlers/Items/iOS/ItemsViewLayout.cs \
    src/Controls/src/Core/Handlers/Items/iOS/ItemsViewScrollHelper.cs \
    src/Controls/src/Core/Handlers/Items2/iOS/LayoutFactory2.cs \
  --exclude Templates/src --verify-no-changes --verbosity minimal
git diff --check
```

**Passed.**

**Full UI-host packaging/runtime limitation:** an additional iOS
simulator HostApp build stopped at the Apple SDK's toolchain check: SDK
`27.0.12230` requires **Xcode 27.0**, while this machine has Xcode
27.1/27.2. The check was not bypassed. Native `Controls.Core`
compilation above is verified; full HostApp packaging and runtime/UI
tests are not claimed.

### 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 #40116. Repairs the Apple compilation regression introduced
by #39493.

Original CI evidence: [maui-pr-uitests build 1677816, Build Sample App
log
188](https://dev.azure.com/dnceng-public/public/_apis/build/builds/1677816/logs/188),
showing `ItemsViewScrollHelper.cs(26,63): error CS0618` for both native
Apple TFMs.

<!--
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>
kubaflo added a commit that referenced this pull request Nov 18, 2026
…ion (#40196)

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

This is the explicitly coordinated **candidate-integration build
repair** for #40116, targeting `candidate/11.0.1xx-sr2`. The helper
introduced by #39493 is not on `net11` or `main`; this PR changes only
its three affected source files and does not import candidate contents
into another branch.

### Description of Change

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

#39493 introduced `ItemsViewScrollHelper`, a non-obsolete shared helper
whose CarouselView guard references the obsolete legacy
`CarouselViewController`. With the repository's warnings-as-errors
policy, this produces `CS0618` in `Controls.Core` for both
`net11.0-ios27.0` and `net11.0-maccatalyst27.0`, preventing the UI
sample from compiling.

Move the CarouselView exclusions to the corresponding layout callbacks:

- The already-obsolete legacy `ItemsViewLayout` checks
`CarouselViewController`.
- The current compositional layout checks `CarouselViewController2`.
- The shared helper no longer depends on either controller. Its nullable
collection parameter explicitly preserves the existing null/no-op path.

Both built-in CarouselView handlers remain excluded from first-item
scrolling. CollectionView scrolling, empty-section handling, RTL
alignment, and `KeepLastItemInView` are unchanged. There are no public
API changes, warning suppressions, test-assertion changes, or pipeline
changes.

#### Validation

Validated with the candidate's SDK **11.0.101** (`global.json`
provisioning version `11.0.101-servicing.26559.106`) and pinned
iOS/MacCatalyst SDK **27.0.12230**. The reversible check ran on
candidate `0be82c01b9f9dcc5d58684fa92fb493b0e8f9625`; the final
committed build also passed after refreshing onto candidate
`03a6ec676c`.

```sh
.dotnet/dotnet build src/Controls/src/Core/Controls.Core.csproj -c Release \
  -p:IncludeAndroidTargetFrameworks=false -p:IncludeMacOSTargetFrameworks=false \
  -p:IncludeIosTargetFrameworks=true -p:IncludeMacCatalystTargetFrameworks=true \
  -p:TreatWarningsAsErrors=true -v:quiet
```

**Passed: 0 warnings, 0 errors**, including both native Apple target
frameworks. The causal check was baseline red (the two `CS0618` errors),
repair green, complete repair reversion red after refreshing the
candidate (the same two errors), and restored repair green. Commit
`170cdfbcf8` was compiled successfully before pushing.

```sh
.dotnet/dotnet format whitespace --folder \
  --include src/Controls/src/Core/Handlers/Items/iOS/ItemsViewLayout.cs \
    src/Controls/src/Core/Handlers/Items/iOS/ItemsViewScrollHelper.cs \
    src/Controls/src/Core/Handlers/Items2/iOS/LayoutFactory2.cs \
  --exclude Templates/src --verify-no-changes --verbosity minimal
git diff --check
```

**Passed.**

**Full UI-host packaging/runtime limitation:** an additional iOS
simulator HostApp build stopped at the Apple SDK's toolchain check: SDK
`27.0.12230` requires **Xcode 27.0**, while this machine has Xcode
27.1/27.2. The check was not bypassed. Native `Controls.Core`
compilation above is verified; full HostApp packaging and runtime/UI
tests are not claimed.

### 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 #40116. Repairs the Apple compilation regression introduced
by #39493.

Original CI evidence: [maui-pr-uitests build 1677816, Build Sample App
log
188](https://dev.azure.com/dnceng-public/public/_apis/build/builds/1677816/logs/188),
showing `ItemsViewScrollHelper.cs(26,63): error CS0618` for both native
Apple TFMs.

<!--
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>
kubaflo added a commit that referenced this pull request Nov 18, 2026
…ion (#40196)

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

This is the explicitly coordinated **candidate-integration build
repair** for #40116, targeting `candidate/11.0.1xx-sr2`. The helper
introduced by #39493 is not on `net11` or `main`; this PR changes only
its three affected source files and does not import candidate contents
into another branch.

### Description of Change

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

#39493 introduced `ItemsViewScrollHelper`, a non-obsolete shared helper
whose CarouselView guard references the obsolete legacy
`CarouselViewController`. With the repository's warnings-as-errors
policy, this produces `CS0618` in `Controls.Core` for both
`net11.0-ios27.0` and `net11.0-maccatalyst27.0`, preventing the UI
sample from compiling.

Move the CarouselView exclusions to the corresponding layout callbacks:

- The already-obsolete legacy `ItemsViewLayout` checks
`CarouselViewController`.
- The current compositional layout checks `CarouselViewController2`.
- The shared helper no longer depends on either controller. Its nullable
collection parameter explicitly preserves the existing null/no-op path.

Both built-in CarouselView handlers remain excluded from first-item
scrolling. CollectionView scrolling, empty-section handling, RTL
alignment, and `KeepLastItemInView` are unchanged. There are no public
API changes, warning suppressions, test-assertion changes, or pipeline
changes.

#### Validation

Validated with the candidate's SDK **11.0.101** (`global.json`
provisioning version `11.0.101-servicing.26559.106`) and pinned
iOS/MacCatalyst SDK **27.0.12230**. The reversible check ran on
candidate `0be82c01b9f9dcc5d58684fa92fb493b0e8f9625`; the final
committed build also passed after refreshing onto candidate
`03a6ec676c`.

```sh
.dotnet/dotnet build src/Controls/src/Core/Controls.Core.csproj -c Release \
  -p:IncludeAndroidTargetFrameworks=false -p:IncludeMacOSTargetFrameworks=false \
  -p:IncludeIosTargetFrameworks=true -p:IncludeMacCatalystTargetFrameworks=true \
  -p:TreatWarningsAsErrors=true -v:quiet
```

**Passed: 0 warnings, 0 errors**, including both native Apple target
frameworks. The causal check was baseline red (the two `CS0618` errors),
repair green, complete repair reversion red after refreshing the
candidate (the same two errors), and restored repair green. Commit
`170cdfbcf8` was compiled successfully before pushing.

```sh
.dotnet/dotnet format whitespace --folder \
  --include src/Controls/src/Core/Handlers/Items/iOS/ItemsViewLayout.cs \
    src/Controls/src/Core/Handlers/Items/iOS/ItemsViewScrollHelper.cs \
    src/Controls/src/Core/Handlers/Items2/iOS/LayoutFactory2.cs \
  --exclude Templates/src --verify-no-changes --verbosity minimal
git diff --check
```

**Passed.**

**Full UI-host packaging/runtime limitation:** an additional iOS
simulator HostApp build stopped at the Apple SDK's toolchain check: SDK
`27.0.12230` requires **Xcode 27.0**, while this machine has Xcode
27.1/27.2. The check was not bypassed. Native `Controls.Core`
compilation above is verified; full HostApp packaging and runtime/UI
tests are not claimed.

### 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 #40116. Repairs the Apple compilation regression introduced
by #39493.

Original CI evidence: [maui-pr-uitests build 1677816, Build Sample App
log
188](https://dev.azure.com/dnceng-public/public/_apis/build/builds/1677816/logs/188),
showing `ItemsViewScrollHelper.cs(26,63): error CS0618` for both native
Apple TFMs.

<!--
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>
kubaflo added a commit that referenced this pull request Nov 18, 2026
…ion (#40196)

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

This is the explicitly coordinated **candidate-integration build
repair** for #40116, targeting `candidate/11.0.1xx-sr2`. The helper
introduced by #39493 is not on `net11` or `main`; this PR changes only
its three affected source files and does not import candidate contents
into another branch.

### Description of Change

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

#39493 introduced `ItemsViewScrollHelper`, a non-obsolete shared helper
whose CarouselView guard references the obsolete legacy
`CarouselViewController`. With the repository's warnings-as-errors
policy, this produces `CS0618` in `Controls.Core` for both
`net11.0-ios27.0` and `net11.0-maccatalyst27.0`, preventing the UI
sample from compiling.

Move the CarouselView exclusions to the corresponding layout callbacks:

- The already-obsolete legacy `ItemsViewLayout` checks
`CarouselViewController`.
- The current compositional layout checks `CarouselViewController2`.
- The shared helper no longer depends on either controller. Its nullable
collection parameter explicitly preserves the existing null/no-op path.

Both built-in CarouselView handlers remain excluded from first-item
scrolling. CollectionView scrolling, empty-section handling, RTL
alignment, and `KeepLastItemInView` are unchanged. There are no public
API changes, warning suppressions, test-assertion changes, or pipeline
changes.

#### Validation

Validated with the candidate's SDK **11.0.101** (`global.json`
provisioning version `11.0.101-servicing.26559.106`) and pinned
iOS/MacCatalyst SDK **27.0.12230**. The reversible check ran on
candidate `0be82c01b9f9dcc5d58684fa92fb493b0e8f9625`; the final
committed build also passed after refreshing onto candidate
`03a6ec676c`.

```sh
.dotnet/dotnet build src/Controls/src/Core/Controls.Core.csproj -c Release \
  -p:IncludeAndroidTargetFrameworks=false -p:IncludeMacOSTargetFrameworks=false \
  -p:IncludeIosTargetFrameworks=true -p:IncludeMacCatalystTargetFrameworks=true \
  -p:TreatWarningsAsErrors=true -v:quiet
```

**Passed: 0 warnings, 0 errors**, including both native Apple target
frameworks. The causal check was baseline red (the two `CS0618` errors),
repair green, complete repair reversion red after refreshing the
candidate (the same two errors), and restored repair green. Commit
`170cdfbcf8` was compiled successfully before pushing.

```sh
.dotnet/dotnet format whitespace --folder \
  --include src/Controls/src/Core/Handlers/Items/iOS/ItemsViewLayout.cs \
    src/Controls/src/Core/Handlers/Items/iOS/ItemsViewScrollHelper.cs \
    src/Controls/src/Core/Handlers/Items2/iOS/LayoutFactory2.cs \
  --exclude Templates/src --verify-no-changes --verbosity minimal
git diff --check
```

**Passed.**

**Full UI-host packaging/runtime limitation:** an additional iOS
simulator HostApp build stopped at the Apple SDK's toolchain check: SDK
`27.0.12230` requires **Xcode 27.0**, while this machine has Xcode
27.1/27.2. The check was not bypassed. Native `Controls.Core`
compilation above is verified; full HostApp packaging and runtime/UI
tests are not claimed.

### 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 #40116. Repairs the Apple compilation regression introduced
by #39493.

Original CI evidence: [maui-pr-uitests build 1677816, Build Sample App
log
188](https://dev.azure.com/dnceng-public/public/_apis/build/builds/1677816/logs/188),
showing `ItemsViewScrollHelper.cs(26,63): error CS0618` for both native
Apple TFMs.

<!--
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>
kubaflo added a commit that referenced this pull request Nov 19, 2026
…ion (#40196)

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

This is the explicitly coordinated **candidate-integration build
repair** for #40116, targeting `candidate/11.0.1xx-sr2`. The helper
introduced by #39493 is not on `net11` or `main`; this PR changes only
its three affected source files and does not import candidate contents
into another branch.

### Description of Change

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

#39493 introduced `ItemsViewScrollHelper`, a non-obsolete shared helper
whose CarouselView guard references the obsolete legacy
`CarouselViewController`. With the repository's warnings-as-errors
policy, this produces `CS0618` in `Controls.Core` for both
`net11.0-ios27.0` and `net11.0-maccatalyst27.0`, preventing the UI
sample from compiling.

Move the CarouselView exclusions to the corresponding layout callbacks:

- The already-obsolete legacy `ItemsViewLayout` checks
`CarouselViewController`.
- The current compositional layout checks `CarouselViewController2`.
- The shared helper no longer depends on either controller. Its nullable
collection parameter explicitly preserves the existing null/no-op path.

Both built-in CarouselView handlers remain excluded from first-item
scrolling. CollectionView scrolling, empty-section handling, RTL
alignment, and `KeepLastItemInView` are unchanged. There are no public
API changes, warning suppressions, test-assertion changes, or pipeline
changes.

#### Validation

Validated with the candidate's SDK **11.0.101** (`global.json`
provisioning version `11.0.101-servicing.26559.106`) and pinned
iOS/MacCatalyst SDK **27.0.12230**. The reversible check ran on
candidate `0be82c01b9f9dcc5d58684fa92fb493b0e8f9625`; the final
committed build also passed after refreshing onto candidate
`03a6ec676c`.

```sh
.dotnet/dotnet build src/Controls/src/Core/Controls.Core.csproj -c Release \
  -p:IncludeAndroidTargetFrameworks=false -p:IncludeMacOSTargetFrameworks=false \
  -p:IncludeIosTargetFrameworks=true -p:IncludeMacCatalystTargetFrameworks=true \
  -p:TreatWarningsAsErrors=true -v:quiet
```

**Passed: 0 warnings, 0 errors**, including both native Apple target
frameworks. The causal check was baseline red (the two `CS0618` errors),
repair green, complete repair reversion red after refreshing the
candidate (the same two errors), and restored repair green. Commit
`170cdfbcf8` was compiled successfully before pushing.

```sh
.dotnet/dotnet format whitespace --folder \
  --include src/Controls/src/Core/Handlers/Items/iOS/ItemsViewLayout.cs \
    src/Controls/src/Core/Handlers/Items/iOS/ItemsViewScrollHelper.cs \
    src/Controls/src/Core/Handlers/Items2/iOS/LayoutFactory2.cs \
  --exclude Templates/src --verify-no-changes --verbosity minimal
git diff --check
```

**Passed.**

**Full UI-host packaging/runtime limitation:** an additional iOS
simulator HostApp build stopped at the Apple SDK's toolchain check: SDK
`27.0.12230` requires **Xcode 27.0**, while this machine has Xcode
27.1/27.2. The check was not bypassed. Native `Controls.Core`
compilation above is verified; full HostApp packaging and runtime/UI
tests are not claimed.

### 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 #40116. Repairs the Apple compilation regression introduced
by #39493.

Original CI evidence: [maui-pr-uitests build 1677816, Build Sample App
log
188](https://dev.azure.com/dnceng-public/public/_apis/build/builds/1677816/logs/188),
showing `ItemsViewScrollHelper.cs(26,63): error CS0618` for both native
Apple TFMs.

<!--
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>
kubaflo added a commit that referenced this pull request Nov 22, 2026
…ion (#40196)

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

This is the explicitly coordinated **candidate-integration build
repair** for #40116, targeting `candidate/11.0.1xx-sr2`. The helper
introduced by #39493 is not on `net11` or `main`; this PR changes only
its three affected source files and does not import candidate contents
into another branch.

### Description of Change

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

#39493 introduced `ItemsViewScrollHelper`, a non-obsolete shared helper
whose CarouselView guard references the obsolete legacy
`CarouselViewController`. With the repository's warnings-as-errors
policy, this produces `CS0618` in `Controls.Core` for both
`net11.0-ios27.0` and `net11.0-maccatalyst27.0`, preventing the UI
sample from compiling.

Move the CarouselView exclusions to the corresponding layout callbacks:

- The already-obsolete legacy `ItemsViewLayout` checks
`CarouselViewController`.
- The current compositional layout checks `CarouselViewController2`.
- The shared helper no longer depends on either controller. Its nullable
collection parameter explicitly preserves the existing null/no-op path.

Both built-in CarouselView handlers remain excluded from first-item
scrolling. CollectionView scrolling, empty-section handling, RTL
alignment, and `KeepLastItemInView` are unchanged. There are no public
API changes, warning suppressions, test-assertion changes, or pipeline
changes.

#### Validation

Validated with the candidate's SDK **11.0.101** (`global.json`
provisioning version `11.0.101-servicing.26559.106`) and pinned
iOS/MacCatalyst SDK **27.0.12230**. The reversible check ran on
candidate `0be82c01b9f9dcc5d58684fa92fb493b0e8f9625`; the final
committed build also passed after refreshing onto candidate
`03a6ec676c`.

```sh
.dotnet/dotnet build src/Controls/src/Core/Controls.Core.csproj -c Release \
  -p:IncludeAndroidTargetFrameworks=false -p:IncludeMacOSTargetFrameworks=false \
  -p:IncludeIosTargetFrameworks=true -p:IncludeMacCatalystTargetFrameworks=true \
  -p:TreatWarningsAsErrors=true -v:quiet
```

**Passed: 0 warnings, 0 errors**, including both native Apple target
frameworks. The causal check was baseline red (the two `CS0618` errors),
repair green, complete repair reversion red after refreshing the
candidate (the same two errors), and restored repair green. Commit
`170cdfbcf8` was compiled successfully before pushing.

```sh
.dotnet/dotnet format whitespace --folder \
  --include src/Controls/src/Core/Handlers/Items/iOS/ItemsViewLayout.cs \
    src/Controls/src/Core/Handlers/Items/iOS/ItemsViewScrollHelper.cs \
    src/Controls/src/Core/Handlers/Items2/iOS/LayoutFactory2.cs \
  --exclude Templates/src --verify-no-changes --verbosity minimal
git diff --check
```

**Passed.**

**Full UI-host packaging/runtime limitation:** an additional iOS
simulator HostApp build stopped at the Apple SDK's toolchain check: SDK
`27.0.12230` requires **Xcode 27.0**, while this machine has Xcode
27.1/27.2. The check was not bypassed. Native `Controls.Core`
compilation above is verified; full HostApp packaging and runtime/UI
tests are not claimed.

### 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 #40116. Repairs the Apple compilation regression introduced
by #39493.

Original CI evidence: [maui-pr-uitests build 1677816, Build Sample App
log
188](https://dev.azure.com/dnceng-public/public/_apis/build/builds/1677816/logs/188),
showing `ItemsViewScrollHelper.cs(26,63): error CS0618` for both native
Apple TFMs.

<!--
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>
kubaflo added a commit that referenced this pull request Nov 23, 2026
…ion (#40196)

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

This is the explicitly coordinated **candidate-integration build
repair** for #40116, targeting `candidate/11.0.1xx-sr2`. The helper
introduced by #39493 is not on `net11` or `main`; this PR changes only
its three affected source files and does not import candidate contents
into another branch.

### Description of Change

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

#39493 introduced `ItemsViewScrollHelper`, a non-obsolete shared helper
whose CarouselView guard references the obsolete legacy
`CarouselViewController`. With the repository's warnings-as-errors
policy, this produces `CS0618` in `Controls.Core` for both
`net11.0-ios27.0` and `net11.0-maccatalyst27.0`, preventing the UI
sample from compiling.

Move the CarouselView exclusions to the corresponding layout callbacks:

- The already-obsolete legacy `ItemsViewLayout` checks
`CarouselViewController`.
- The current compositional layout checks `CarouselViewController2`.
- The shared helper no longer depends on either controller. Its nullable
collection parameter explicitly preserves the existing null/no-op path.

Both built-in CarouselView handlers remain excluded from first-item
scrolling. CollectionView scrolling, empty-section handling, RTL
alignment, and `KeepLastItemInView` are unchanged. There are no public
API changes, warning suppressions, test-assertion changes, or pipeline
changes.

#### Validation

Validated with the candidate's SDK **11.0.101** (`global.json`
provisioning version `11.0.101-servicing.26559.106`) and pinned
iOS/MacCatalyst SDK **27.0.12230**. The reversible check ran on
candidate `0be82c01b9f9dcc5d58684fa92fb493b0e8f9625`; the final
committed build also passed after refreshing onto candidate
`03a6ec676c`.

```sh
.dotnet/dotnet build src/Controls/src/Core/Controls.Core.csproj -c Release \
  -p:IncludeAndroidTargetFrameworks=false -p:IncludeMacOSTargetFrameworks=false \
  -p:IncludeIosTargetFrameworks=true -p:IncludeMacCatalystTargetFrameworks=true \
  -p:TreatWarningsAsErrors=true -v:quiet
```

**Passed: 0 warnings, 0 errors**, including both native Apple target
frameworks. The causal check was baseline red (the two `CS0618` errors),
repair green, complete repair reversion red after refreshing the
candidate (the same two errors), and restored repair green. Commit
`170cdfbcf8` was compiled successfully before pushing.

```sh
.dotnet/dotnet format whitespace --folder \
  --include src/Controls/src/Core/Handlers/Items/iOS/ItemsViewLayout.cs \
    src/Controls/src/Core/Handlers/Items/iOS/ItemsViewScrollHelper.cs \
    src/Controls/src/Core/Handlers/Items2/iOS/LayoutFactory2.cs \
  --exclude Templates/src --verify-no-changes --verbosity minimal
git diff --check
```

**Passed.**

**Full UI-host packaging/runtime limitation:** an additional iOS
simulator HostApp build stopped at the Apple SDK's toolchain check: SDK
`27.0.12230` requires **Xcode 27.0**, while this machine has Xcode
27.1/27.2. The check was not bypassed. Native `Controls.Core`
compilation above is verified; full HostApp packaging and runtime/UI
tests are not claimed.

### 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 #40116. Repairs the Apple compilation regression introduced
by #39493.

Original CI evidence: [maui-pr-uitests build 1677816, Build Sample App
log
188](https://dev.azure.com/dnceng-public/public/_apis/build/builds/1677816/logs/188),
showing `ItemsViewScrollHelper.cs(26,63): error CS0618` for both native
Apple TFMs.

<!--
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>
@kubaflo kubaflo added this to the .NET 11 SR2 milestone Nov 24, 2026
KarthikRajaKalaimani pushed a commit to KarthikRajaKalaimani/maui that referenced this pull request Nov 26, 2026
…ion (dotnet#40196)

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

This is the explicitly coordinated **candidate-integration build
repair** for dotnet#40116, targeting `candidate/11.0.1xx-sr2`. The helper
introduced by dotnet#39493 is not on `net11` or `main`; this PR changes only
its three affected source files and does not import candidate contents
into another branch.

### Description of Change

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

dotnet#39493 introduced `ItemsViewScrollHelper`, a non-obsolete shared helper
whose CarouselView guard references the obsolete legacy
`CarouselViewController`. With the repository's warnings-as-errors
policy, this produces `CS0618` in `Controls.Core` for both
`net11.0-ios27.0` and `net11.0-maccatalyst27.0`, preventing the UI
sample from compiling.

Move the CarouselView exclusions to the corresponding layout callbacks:

- The already-obsolete legacy `ItemsViewLayout` checks
`CarouselViewController`.
- The current compositional layout checks `CarouselViewController2`.
- The shared helper no longer depends on either controller. Its nullable
collection parameter explicitly preserves the existing null/no-op path.

Both built-in CarouselView handlers remain excluded from first-item
scrolling. CollectionView scrolling, empty-section handling, RTL
alignment, and `KeepLastItemInView` are unchanged. There are no public
API changes, warning suppressions, test-assertion changes, or pipeline
changes.

#### Validation

Validated with the candidate's SDK **11.0.101** (`global.json`
provisioning version `11.0.101-servicing.26559.106`) and pinned
iOS/MacCatalyst SDK **27.0.12230**. The reversible check ran on
candidate `0be82c01b9f9dcc5d58684fa92fb493b0e8f9625`; the final
committed build also passed after refreshing onto candidate
`03a6ec676c`.

```sh
.dotnet/dotnet build src/Controls/src/Core/Controls.Core.csproj -c Release \
  -p:IncludeAndroidTargetFrameworks=false -p:IncludeMacOSTargetFrameworks=false \
  -p:IncludeIosTargetFrameworks=true -p:IncludeMacCatalystTargetFrameworks=true \
  -p:TreatWarningsAsErrors=true -v:quiet
```

**Passed: 0 warnings, 0 errors**, including both native Apple target
frameworks. The causal check was baseline red (the two `CS0618` errors),
repair green, complete repair reversion red after refreshing the
candidate (the same two errors), and restored repair green. Commit
`170cdfbcf8` was compiled successfully before pushing.

```sh
.dotnet/dotnet format whitespace --folder \
  --include src/Controls/src/Core/Handlers/Items/iOS/ItemsViewLayout.cs \
    src/Controls/src/Core/Handlers/Items/iOS/ItemsViewScrollHelper.cs \
    src/Controls/src/Core/Handlers/Items2/iOS/LayoutFactory2.cs \
  --exclude Templates/src --verify-no-changes --verbosity minimal
git diff --check
```

**Passed.**

**Full UI-host packaging/runtime limitation:** an additional iOS
simulator HostApp build stopped at the Apple SDK's toolchain check: SDK
`27.0.12230` requires **Xcode 27.0**, while this machine has Xcode
27.1/27.2. The check was not bypassed. Native `Controls.Core`
compilation above is verified; full HostApp packaging and runtime/UI
tests are not claimed.

### 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 dotnet#40116. Repairs the Apple compilation regression introduced
by dotnet#39493.

Original CI evidence: [maui-pr-uitests build 1677816, Build Sample App
log
188](https://dev.azure.com/dnceng-public/public/_apis/build/builds/1677816/logs/188),
showing `ItemsViewScrollHelper.cs(26,63): error CS0618` for both native
Apple TFMs.

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

This branch was previously deployed

1 inactive deployment
copilot-pat-pool — 170cdfbc Deployed Nov 12, 2026 by kubaflo via conclusion #2919
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.

1 participant