Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
20b036e
Clarify legacy Shell renderer arrange no-ops (#38108)
jfversluis Sep 2, 2026
3b14c7a
[net11.0] Obsolete unused iOS image source extensions (#38107)
jfversluis Sep 2, 2026
4b5c776
Remove stale input transparency test TODO (#38105)
jfversluis Sep 2, 2026
ad758a9
[iOS] Fix modal presentation style availability check (#38104)
jfversluis Sep 2, 2026
14797cb
Document UIWindow GetWindow extensions (#38102)
jfversluis Sep 2, 2026
90a8557
[iOS] Obsolete NavigationRenderer DidRotate override (#38110)
jfversluis Sep 2, 2026
e3d9e51
[ci-scan-net11] Fix for Windows DragEvents UI test times out waiting …
TamilarasanSF4853 Sep 2, 2026
27d3280
[net11] [iOS] [Testing] Extend FlyoutPage device tests to run against…
Vignesh-SF3580 Sep 2, 2026
8711f2e
[net 11] [Windows] Fix failing Windows geocoding concurrency test (#3…
Shalini-Ashokan Sep 2, 2026
dd86ae0
[net11.0] Obsolete legacy CollectionView handler APIs (#38049)
mattleibow Sep 2, 2026
b381b1c
[net11.0][Android] Fix safe-area layout after hiding Shell and Naviga…
praveenkumarkarunanithi Sep 3, 2026
61aa24b
[net11] [Windows] Fix CollectionView ScrollTo MakeVisible behavior (#…
Shalini-Ashokan Sep 3, 2026
7a68b30
[net11] [iOS] [Testing]Extend TabbedPage device tests to run against …
Vignesh-SF3580 Sep 3, 2026
112c2fb
[net11.0] Sync external dependency pins with RC1 (#38124)
kubaflo Sep 3, 2026
c6608b5
Fix x:Reference binding updates during XAML Hot Reload (#37895)
StephaneDelcroix Sep 3, 2026
f491e76
[net11.0] [Windows] Fix TabbedPage badge default colors (#38203)
praveenkumarkarunanithi Sep 4, 2026
6368acb
[net11.0] Remove Apple CollectionView and CarouselView V1 tests (#38082)
mattleibow Sep 4, 2026
d96aa52
[net 11] Fix x:Reference NameScope resolution in lazy DataTemplate re…
Shalini-Ashokan Sep 4, 2026
6b5489c
[net11.0] Polish Apple CollectionView test cleanup (#38206)
mattleibow Sep 4, 2026
9d7bacb
VisualElement: Avoid duplicate initial mappings (#37843)
StephaneDelcroix Sep 5, 2026
48ec0d4
[ci] Re-enable previous-framework template tests (#33961)
rmarinho Sep 5, 2026
977fbfc
[net11.0] Update dependencies from dnceng/internal/dotnet-optimizatio…
dotnet-maestro[bot] Sep 7, 2026
9b3131b
[NET11] [Android] Fix Material 3 - DatePicker & TimePicker editor fie…
Dhivya-SF4094 Sep 7, 2026
e011912
[NET11] [iOS/MacCatalyst] Add an opt-in Shell handler implementation …
Vignesh-SF3580 Sep 8, 2026
e97c82a
Restore lazy trigger specificity allocation (#38345)
simonrozsival Sep 8, 2026
da1686d
Bump MicrosoftMauiPreviousDotNetReleasedVersion to 10.0.101 (#38349)
kubaflo Sep 8, 2026
1c12f94
Avoid unnecessary closure allocations on synchronous paths (#38348)
simonrozsival Sep 9, 2026
9576ae2
[leak-scan] Fix: DependencyResolver.ResolveUsing — process-global re…
SubhikshaSf4851 Sep 9, 2026
5018691
[net11.0] Update dependencies from dotnet/android, dotnet/dotnet, dot…
dotnet-maestro[bot] Sep 9, 2026
84b9301
Add a dependency-free C# UI option to the MAUI app template (#34864)
davidortinau Sep 10, 2026
032ab4f
[net11.0] Update dependencies from dotnet/android, dotnet/dotnet (#38…
dotnet-maestro[bot] Sep 10, 2026
b438700
[XAML] Add ENC1002 regression coverage (#38414)
StephaneDelcroix Sep 10, 2026
c8103a9
[XAML] Fix classless app resource Hot Reload (#38409)
StephaneDelcroix Sep 10, 2026
c9a82ee
Reset files to release/11.0.1xx-rc1
github-actions[bot] Sep 11, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,38 @@ applyTo: "src/Controls/src/Core/Handlers/Items/**,src/Controls/src/Core/Handlers

## Handler Implementation Status

There are **TWO separate handler implementations**, but they apply to **different platforms**:
There are **TWO separate handler implementations**, with platform- and control-specific coverage:

1. **Items/** (`Handlers/Items/`) - Contains code for **ALL platforms** (Android, iOS, Windows, MacCatalyst, Tizen)
2. **Items2/** (`Handlers/Items2/`) - Contains code for **iOS/MacCatalyst ONLY**
2. **Items2/** (`Handlers/Items2/`) - Contains code for **iOS/MacCatalyst** and **Windows CollectionView**

### Platform-Specific Deprecation

The deprecation of Items/ **only applies to iOS/MacCatalyst**:
The deprecation of Items/ depends on both platform and control:

| Platform | Active Handler | Notes |
|----------|----------------|-------|
| **Android** | `Items/Android/` | **ONLY implementation** - Items2/ has no Android code |
| **Windows** | `Items/` | **ONLY implementation** - Items2/ has no Windows code |
| **iOS** | `Items2/iOS/` | Items/ iOS code is deprecated |
| **MacCatalyst** | `Items2/iOS/` | Items/ MacCatalyst code is deprecated |
| Platform | Control | Active Handler | Notes |
|----------|---------|----------------|-------|
| **Android** | CollectionView / CarouselView | `Items/Android/` | **ONLY implementation** - Items2/ has no Android code |
| **Tizen** | CollectionView / CarouselView | `Items/Tizen/` | **ONLY implementation** - Items2/ has no Tizen code |
| **Windows** | CollectionView | `Items2/Windows/` | Default on .NET 11; Items/ is the obsolete feature-switch fallback |
| **Windows** | CarouselView | `Items/` | **ONLY implementation** - there is no Windows CarouselViewHandler2 |
| **iOS** | CollectionView / CarouselView | `Items2/iOS/` | Items/ iOS code is deprecated |
| **MacCatalyst** | CollectionView / CarouselView | `Items2/iOS/` | Items/ MacCatalyst code is deprecated |

**CRITICAL**: Items2/ is **iOS/MacCatalyst only**. There is NO Items2/ code for Android or Windows.
**CRITICAL**: Items2/ does not replace Items/ wholesale. Android and Tizen use Items/ for both controls, and Windows CarouselView still uses Items/.

### Shared iOS/Mac Catalyst Infrastructure

Items2 intentionally reuses these public Items types:

- `IItemsViewSource`
- `IObservableItemsViewSource`
- `ILoopItemsViewSource`
- `MauiCollectionView`
- `IndexPathHelpers`
- `ScrollToPositionExtensions`

It also reuses internal item-source, template, index-path, snap, scroll-tracking, and reorder helpers from Items/. Do not classify or obsolete a type solely from its Items/ path; check Items2 references first.

---

Expand All @@ -32,13 +47,17 @@ The deprecation of Items/ **only applies to iOS/MacCatalyst**:
### Decision Tree by Platform

```
Is the issue/PR for Android or Windows?
Is the issue/PR for Android or Tizen?
YES → Work on Items/ (it's the ONLY implementation)
NO → Continue...

Is the issue/PR for iOS or MacCatalyst?
YES → Work on Items2/ (Items/ is deprecated for iOS)
NO → Check platform and find appropriate handler
NO → Continue...

Is the issue/PR for Windows CollectionView?
YES → Work on Items2/ (Items/ is the obsolete feature-switch fallback)
NO → Work on Items/ for Windows CarouselView
```

### Detection Algorithm
Expand All @@ -51,17 +70,22 @@ git diff <base-branch>..<pr-branch> --name-only | grep -i "handlers/items"

# Look for path pattern:
# - Contains "/Items/Android/" → Android (ONLY implementation, work here)
# - Contains "/Items/Windows/" or ".Windows.cs" → Windows (ONLY implementation, work here)
# - Contains "/Items/Tizen/" or ".Tizen.cs" → Tizen (ONLY implementation, work here)
# - Contains "/Items2/Windows/" or "Items2/*.Windows.cs" → Windows CollectionView (CURRENT)
# - Contains "/Items/*.Windows.cs" → Windows CarouselView or deprecated CollectionView fallback
# - Contains "/Items2/iOS/" or "Items2/*.iOS.cs" → iOS/MacCatalyst (CURRENT)
# - Contains "/Items/*.iOS.cs" (not Items2) → iOS (DEPRECATED, prefer Items2/)
# - Contains "/Items/iOS/" or "Items/*.iOS.cs" (not Items2) → iOS/MacCatalyst legacy code;
# prefer Items2/ unless the type is part of the shared infrastructure listed above
```

### Default Behavior by Platform

| Platform | Default Action |
|----------|----------------|
| **Android** | ✅ Work on `Items/Android/` - it's the only option |
| **Windows** | ✅ Work on `Items/` Windows files - it's the only option |
| **Tizen** | ✅ Work on `Items/Tizen/` - it's the only option |
| **Windows CollectionView** | ✅ Work on `Items2/` Windows files - this is the .NET 11 default |
| **Windows CarouselView** | ✅ Work on `Items/` Windows files - it's the only option |
| **iOS/MacCatalyst** | ✅ Work on `Items2/` - Items/ is deprecated for iOS |

### When to Work on Items/ for iOS (Deprecated)
Expand All @@ -78,18 +102,23 @@ Only work on Items/ iOS code when:
| Path Pattern | Platform | Status |
|--------------|----------|--------|
| `Handlers/Items/Android/` | Android | **ACTIVE** (only implementation) |
| `Handlers/Items/*.Windows.cs` | Windows | **ACTIVE** (only implementation) |
| `Handlers/Items/Tizen/` | Tizen | **ACTIVE** (only implementation) |
| `Handlers/Items2/Windows/`, `Handlers/Items2/*.Windows.cs` | Windows CollectionView | **ACTIVE** (default) |
| `Handlers/Items/*.Windows.cs` | Windows | **ACTIVE** for CarouselView; **DEPRECATED** CollectionView fallback |
| `Handlers/Items2/iOS/` | iOS/MacCatalyst | **ACTIVE** (current) |
| `Handlers/Items/*.iOS.cs` | iOS/MacCatalyst | **DEPRECATED** (use Items2/) |
| `Handlers/Items/iOS/`, `Handlers/Items/*.iOS.cs` | iOS/MacCatalyst | **DEPRECATED** handler implementation; retain Items types reused by Items2 |

---

## Common Mistakes to Avoid

❌ **Wrong**: "Items/ is deprecated, so I should check if Items2/ needs the same Android fix"
- Items2/ has NO Android code - there's nothing to check
❌ **Wrong**: "Items/ is deprecated everywhere"
- Items/ remains the only implementation for Android, Tizen, and Windows CarouselView

❌ **Wrong**: "Items2/ is iOS-only"
- Items2/ also contains the default .NET 11 Windows CollectionView implementation

❌ **Wrong**: "This Android fix should also go in Items2/"
- Items2/ is iOS-only, Android code only exists in Items/
- Items2/ has no Android code, so Android work stays in Items/

✅ **Correct**: "This is an Android-only issue, so I work in Items/Android/ which is the only Android implementation"
14 changes: 12 additions & 2 deletions .github/instructions/collectionview-windows.instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,20 @@
applyTo:
- "src/Controls/src/Core/Handlers/Items/*.Windows.cs"
- "src/Controls/src/Core/Handlers/Items/*.windows.cs"
- "src/Controls/src/Core/Handlers/Items2/*.Windows.cs"
- "src/Controls/src/Core/Handlers/Items2/*.windows.cs"
- "src/Controls/src/Core/Handlers/Items2/Windows/**"
---
# CollectionView — Windows (Items/ Handler)
# CollectionView — Windows

Items/ is the **ONLY** Windows CollectionView implementation. Items2/ has NO Windows code.
On .NET 11, Items2/ is the default Windows CollectionView implementation. Items/ remains the obsolete CollectionView fallback behind `RuntimeFeature.IsWindowsCollectionView2HandlerEnabled` and the only Windows CarouselView implementation.

## Which Handler to Change

- CollectionView work targets `Items2/`.
- CarouselView work targets `Items/`.
- Change the Items/ CollectionView path only for explicit legacy fallback maintenance.
- Keep `ItemsViewHandler<TItemsView>` active because Windows CarouselView still derives from it; the Structured/Selectable/Groupable/Reorderable Items handler chain is CollectionView-specific and obsolete.

## WinUI ListView/ItemsRepeater Patterns
- Preserve WinUI XAML styles applied via native theming — clearing a MAUI property must restore the style-applied value, not a hardcoded default
Expand Down
4 changes: 2 additions & 2 deletions .github/instructions/templates.instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ Platform-specific `#if` directives (like `#if WINDOWS`, `#if ANDROID`, `#if IOS`

//-:cnd:noEmit
#if WINDOWS
Microsoft.Maui.Controls.Handlers.Items.CollectionViewHandler.Mapper.AppendToMapping(
"KeyboardAccessibleCollectionView",
Microsoft.Maui.Controls.Handlers.Items2.CollectionViewHandler2.Mapper.AppendToMapping(
"ConfigureCollectionView",
(handler, view) => { /* ... */ });
#endif
//+:cnd:noEmit
Expand Down
Loading
Loading