Skip to content

[automated] Merge branch 'net11.0' => 'release/11.0.1xx-rc2' - #38980

Merged
kubaflo merged 6 commits into
release/11.0.1xx-rc2from
merge/net11.0-to-release/11.0.1xx-rc2
Sep 29, 2026
Merged

kubaflo merged 6 commits into
release/11.0.1xx-rc2from
merge/net11.0-to-release/11.0.1xx-rc2

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

I detected changes in the net11.0 branch which have not been merged yet to release/11.0.1xx-rc2. I'm a robot and am configured to help you automatically keep release/11.0.1xx-rc2 up to date, so I've opened this PR.

This PR merges commits made on net11.0 by the following committers:

  • kubaflo
  • github-actions[bot]
  • mattleibow
  • jfversluis
  • SuthiYuvaraj

Instructions for merging from UI

This PR will not be auto-merged. When pull request checks pass, complete this PR by creating a merge commit, not a squash or rebase commit.

merge button instructions

If this repo does not allow creating merge commits from the GitHub UI, use command line instructions.

Instructions for merging via command line

Run these commands to merge this pull request from the command line.

git fetch
git checkout net11.0
git pull --ff-only
git checkout release/11.0.1xx-rc2
git pull --ff-only
git merge --no-ff net11.0

# If there are merge conflicts, resolve them and then run git merge --continue to complete the merge
# Pushing the changes to the PR branch will re-trigger PR validation.
git push https://github.com/dotnet/maui HEAD:merge/net11.0-to-release/11.0.1xx-rc2
or if you are using SSH
git push git@github.com:dotnet/maui HEAD:merge/net11.0-to-release/11.0.1xx-rc2

After PR checks are complete push the branch

git push

Instructions for resolving conflicts

⚠️ If there are merge conflicts, you will need to resolve them manually before merging. You can do this using GitHub or using the command line.

Instructions for updating this pull request

Contributors to this repo have permission update this pull request by pushing to the branch 'merge/net11.0-to-release/11.0.1xx-rc2'. This can be done to resolve conflicts or make other changes to this pull request before it is merged.
The provided examples assume that the remote is named 'origin'. If you have a different remote name, please replace 'origin' with the name of your remote.

git fetch
git checkout -b merge/net11.0-to-release/11.0.1xx-rc2 origin/release/11.0.1xx-rc2
git pull https://github.com/dotnet/maui merge/net11.0-to-release/11.0.1xx-rc2
(make changes)
git commit -m "Updated PR with my changes"
git push https://github.com/dotnet/maui HEAD:merge/net11.0-to-release/11.0.1xx-rc2
or if you are using SSH
git fetch
git checkout -b merge/net11.0-to-release/11.0.1xx-rc2 origin/release/11.0.1xx-rc2
git pull git@github.com:dotnet/maui merge/net11.0-to-release/11.0.1xx-rc2
(make changes)
git commit -m "Updated PR with my changes"
git push git@github.com:dotnet/maui HEAD:merge/net11.0-to-release/11.0.1xx-rc2

Contact .NET Core Engineering (dotnet/dnceng) if you have questions or issues.
Also, if this PR was generated incorrectly, help us fix it. See https://github.com/dotnet/arcade/blob/main/.github/workflows/scripts/inter-branch-merge.ps1.

SuthiYuvaraj and others added 6 commits September 28, 2026 19:19
…ItemsRepeater (#38723)

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

`CollectionView` on WinUI is implemented using `ItemsRepeater`. While
`ItemsRepeater` provides virtualization and item realization, it does
not provide the complete accessibility and keyboard navigation behavior
expected by `CollectionView`.

There are two primary issues:

### 1. Focus Restoration

`ItemsRepeater` does not track the last focused item or provide APIs to
restore focus to a specific item. When keyboard navigation returns to
the `CollectionView`, there is no built-in mechanism to determine which
item should regain focus.

Additionally, due to virtualization, the target item may not be realized
at the time focus is requested, preventing focus from being applied
immediately.

### 2. Selection and Keyboard Navigation

`ItemsRepeater` does not support `SingleSelectionFollowFocus`.

In `SelectionMode.Single`, keyboard navigation using `Tab` and Arrow
keys can trigger selection-related behavior that differs from the
expected `CollectionView` experience.

WinUI's selection-follow-focus implementation assumes that the selected
item is a native `UIElement`. In .NET MAUI, the selected item is
typically a bound data object. This mismatch can result in an invalid
COM cast and cause an `E_NOINTERFACE` ("No such interface supported")
exception during keyboard navigation.

### Root Cause

`ItemsView` is responsible for selection and current-item semantics:

- It owns `SelectionMode` and selected-item state.
- It tracks the current item through `CurrentItemIndex`.
- It is expected to provide an accessible keyboard navigation
experience.

`ItemsRepeater`, however, is only responsible for realizing and
recycling item containers. It does not maintain selection, current-item
state, or focus restoration behavior required by `CollectionView`.

### Fix Description

- Set item containers as accessibility elements so they participate
correctly in accessibility and keyboard navigation scenarios.
- Configure `MauiItemsView` as a tab stop after the control is loaded,
allowing keyboard users to re-enter the control.
- Introduce a custom `AutomationPeer` for `MauiItemsView` to provide
CollectionView-specific accessibility behavior not available through
`ItemsRepeater`.
- Add `ItemsViewAccessibilityHelper` to:
  - Track the currently focused item.
  - Restore focus when keyboard navigation re-enters the control.
- Coordinate focus behavior independently of `ItemsRepeater`
virtualization.
- Handle element preparation events to support focus restoration for
virtualized items that are not yet realized. Focus is applied
automatically once the target container becomes available.
 

### Issues Fixed
Fixes #38660

### Tested the behaviour in the following platforms
- [ ] Android
- [x] Windows
- [ ] iOS
- [ ] Mac

### Output Screenshot
Before Issue Fix | After Issue Fix |
|----------|----------|
|<video width="100" height="100" alt="Before Fix"
src="https://github.com/user-attachments/assets/edaef8c2-4afb-49a5-ae92-17bb16fd7dc1">|<video
width="100" height="100" alt="After Fix"
src="https://github.com/user-attachments/assets/ffc094a8-d41e-47f6-911c-e2bed56675c5">|
#38958)

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

Adds Apple Icon Composer `.icon` bundle support to the existing
`MauiIcon` item for iOS and Mac Catalyst on the `net11.0` branch. The
underlying Apple asset compiler support was introduced by
dotnet/macios#24722 in Apple workload `26.5.11720-net11-p6`.

When an Apple-targeted `MauiIcon` has a case-insensitive `.icon`
extension, MAUI now:

- bypasses Resizetizer/SkiaSharp for that icon only;
- recursively passes the bundle children to the Apple build as
`ImageAsset` items;
- derives `AppIcon` from the `.icon` directory name;
- clears the parsed private `_XSAppIconAssets` value after
`_ReadAppManifest`, avoiding conflicts with the template's legacy
`XSAppIconAssets` entry without modifying the user's Info.plist;
- tracks nested additions, deletions, renames, and content updates for
incremental ACTool builds;
- exports `.icon` MauiIcons through the existing project-reference item
flow.

The existing MauiIcon path remains unchanged for ordinary SVG/PNG
projects and all non-Apple targets. Users condition the `.icon` item to
iOS/Mac Catalyst and retain their existing SVG/PNG `MauiIcon` for other
TFMs; no new item type or public metadata API is introduced.

Validation reports clear errors for unsupported Apple workloads, missing
bundle directories, missing root `icon.json`, empty `Assets`, multiple
`.icon` icons, mixed native/ordinary icons for one Apple TFM, and
conflicting `AppIcon` values.

### Compatibility

- Targets the MAUI `net11.0` branch rather than adding a product-code
TFM gate.
- Requires Apple workload `26.5.11720-net11-p6` or newer.
- Does not weaken Xcode or workload checks.

### Testing

- Focused Native Apple icon MSBuild tests: 10 passed.
- Integration-test compilation/discovery: 2 passed.
- Built a complete Resizetizer package from this branch and clean-built
real iOS simulator and Mac Catalyst apps using Apple workload
`26.5.11720-net11-p6`.
- Verified both `Assets.car` files contain layered `IconImageStack`
renditions and final plists select the bundle-derived icon.
- Verified no-op, content update (including an older input timestamp),
deletion/rename, clean rebuild, `.icon` to SVG switching, runtime Mac
Catalyst launch, and direct inspection of the generated `.icns`.

### Issues Fixed

Enables the MAUI side of dotnet/macios#24722. No public MAUI issue is
linked.

---------

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!

## Summary

- enables `mono/SkiaSharp` and `mono/SkiaSharp.Extended` as non-workload
sources in the official NuGet release pipeline
- resolves SkiaSharp builds through the same Darc repository-and-commit
path used by existing release sources
- verifies the returned BAR repository and exact commit before gathering
assets
- documents the preparation-only dry-run inputs for SkiaSharp releases

SkiaSharp is registered with Maestro through a manual-frequency
subscription, so this does not create automatic MAUI dependency updates.
SkiaSharp.Extended can use the same consumer path once its selected
commit is registered in BAR.

## Safety

- `pushPackages: false` performs BAR resolution, gathering, validation,
NuGet.org filtering, and audit artifact creation without creating a
production publish stage
- real non-workload publishing remains blocked by `ManualValidation`
before the protected NuGet service connection is used
- package identities are filtered against NuGet.org both during
preparation and immediately before publishing
- repository, commit, package identity, duplicate, malformed-package,
and workload-manifest checks remain fail-closed

## Validation

- 26 Pester tests passed across the official release pipeline and
package-status helper
- pipeline YAML and both inline PowerShell scripts parsed successfully
- feature-branch preparation run resolved SkiaSharp BAR 333234 and
staged all 40 selected packages at versions `4.150.4` and `14.2.1.4`,
with no missing or duplicate identities
- a gated feature-branch production-shape run prepared the same 40/40
audit set and reached the manual approval boundary before the publish
job

---------

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Reset patterns:
- global.json
- NuGet.config
- eng/Version.Details.xml
- eng/Versions.props
- eng/common/*
I detected changes in the main branch which have not been merged yet to
net11.0. I'm a robot and am configured to help you automatically keep
net11.0 up to date, so I've opened this PR.

This PR merges commits made on main by the following committers:

* mattleibow

## Instructions for merging from UI

This PR will not be auto-merged. When pull request checks pass, complete
this PR by creating a merge commit, *not* a squash or rebase commit.

<img alt="merge button instructions"
src="https://i.imgur.com/GepcNJV.png" width="300" />

If this repo does not allow creating merge commits from the GitHub UI,
use command line instructions.

## Instructions for merging via command line

Run these commands to merge this pull request from the command line.

``` sh
git fetch
git checkout main
git pull --ff-only
git checkout net11.0
git pull --ff-only
git merge --no-ff main

# If there are merge conflicts, resolve them and then run git merge --continue to complete the merge
# Pushing the changes to the PR branch will re-trigger PR validation.
git push https://github.com/dotnet/maui HEAD:merge/main-to-net11.0
```

<details>
<summary>or if you are using SSH</summary>

```
git push git@github.com:dotnet/maui HEAD:merge/main-to-net11.0
```

</details>


After PR checks are complete push the branch
```
git push
```

## Instructions for resolving conflicts

:warning: If there are merge conflicts, you will need to resolve them
manually before merging. You can do this [using GitHub][resolve-github]
or using the [command line][resolve-cli].

[resolve-github]:
https://help.github.com/articles/resolving-a-merge-conflict-on-github/
[resolve-cli]:
https://help.github.com/articles/resolving-a-merge-conflict-using-the-command-line/

## Instructions for updating this pull request

Contributors to this repo have permission update this pull request by
pushing to the branch 'merge/main-to-net11.0'. This can be done to
resolve conflicts or make other changes to this pull request before it
is merged.
The provided examples assume that the remote is named 'origin'. If you
have a different remote name, please replace 'origin' with the name of
your remote.

```
git fetch
git checkout -b merge/main-to-net11.0 origin/net11.0
git pull https://github.com/dotnet/maui merge/main-to-net11.0
(make changes)
git commit -m "Updated PR with my changes"
git push https://github.com/dotnet/maui HEAD:merge/main-to-net11.0
```

<details>
    <summary>or if you are using SSH</summary>

```
git fetch
git checkout -b merge/main-to-net11.0 origin/net11.0
git pull git@github.com:dotnet/maui merge/main-to-net11.0
(make changes)
git commit -m "Updated PR with my changes"
git push git@github.com:dotnet/maui HEAD:merge/main-to-net11.0
```

</details>

Contact .NET Core Engineering (dotnet/dnceng) if you have questions or
issues.
Also, if this PR was generated incorrectly, help us fix it. See
https://github.com/dotnet/arcade/blob/main/.github/workflows/scripts/inter-branch-merge.ps1.

Co-authored-by: Jakub Florkowski <42434498+kubaflo@users.noreply.github.com>
Reset patterns:
- global.json
- NuGet.config
- eng/Version.Details.xml
- eng/Versions.props
- eng/common/*
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
There may be pipelines that require an authorized user to comment /azp run to run.

@dotnet-policy-service dotnet-policy-service Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Auto-approved automated inter-branch merge.

@kubaflo
kubaflo disabled auto-merge September 29, 2026 10:44
@kubaflo
kubaflo merged commit 349017b into release/11.0.1xx-rc2 Sep 29, 2026
31 of 35 checks passed
@kubaflo
kubaflo deleted the merge/net11.0-to-release/11.0.1xx-rc2 branch September 29, 2026 10:44
@github-actions github-actions Bot added this to the .NET 11.0-rc2 milestone Sep 29, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 30, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants