Skip to content

[A11y] [Windows] Fix CollectionView items announcing internal type name instead of item content in Narrator - #37421

Merged
kubaflo merged 3 commits into
dotnet:inflight/currentfrom
praveenkumarkarunanithi:fix-36940
Aug 14, 2026
Merged

kubaflo merged 3 commits into
dotnet:inflight/currentfrom
praveenkumarkarunanithi:fix-36940

Conversation

@praveenkumarkarunanithi

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!

Root Cause

On Windows, CollectionView's legacy handler (CV1), which is based on ListView, derives each item's screen reader name from the root element of the DataTemplate.

When neither AutomationProperties.Name nor SemanticProperties.Description is set on that root element, WinUI falls back to calling .ToString() on the bound item. As a result, Narrator announces the internal type name: Microsoft.Maui.Controls.Platform.ItemTemplateContext instead of meaningful item content.

This is native WinUI ListView behavior documented by Microsoft and is not specific to MAUI.

Description of Change

Set SemanticProperties.Description on the DataTemplate root, TaskView's Border, and scope it to Windows only. This ensures Narrator announces the bound task title instead of the internal type name.

Windows-only scoping is necessary because applying SemanticProperties.Description on iOS and Mac Catalyst causes the root element to become a single accessibility element, preventing VoiceOver from navigating to the inner CheckBox.

Issues Fixed

Fixes #36940

Platforms Tested

  • iOS
  • Android
  • Windows
  • Mac

Screenshots

Before Fix After Fix
WITHOUTFIX.3.mp4
WITHFIX.3.mp4

@github-actions

Copy link
Copy Markdown
Contributor

🚀 Dogfood this PR with:

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

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

Or

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

@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 added the partner/syncfusion Issues / PR's with Syncfusion collaboration label Aug 14, 2026
@praveenkumarkarunanithi praveenkumarkarunanithi changed the title Fix 36940 [Windows] Fix CollectionView items announcing internal type name instead of item content in Narrator Aug 14, 2026
@praveenkumarkarunanithi praveenkumarkarunanithi added area-templates Project templates, Item Templates for Blazor and MAUI t/a11y Relates to accessibility labels Aug 14, 2026
@praveenkumarkarunanithi praveenkumarkarunanithi changed the title [Windows] Fix CollectionView items announcing internal type name instead of item content in Narrator [A11y] [Windows] Fix CollectionView items announcing internal type name instead of item content in Narrator Aug 14, 2026
@sheiksyedm
sheiksyedm marked this pull request as ready for review August 14, 2026 13:21
Copilot AI lite review requested due to automatic review settings August 14, 2026 13:21
@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.

Copilot AI 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.

Pull request overview

Updates the .NET MAUI mobile app template to improve Windows Narrator announcements for CollectionView task items by ensuring the item container has meaningful semantics, avoiding the fallback to announcing the internal ItemTemplateContext type name.

Changes:

  • Adds a Windows-only (WinUI) SemanticProperties.Description binding on the TaskView root Border to surface the task title to Narrator.
  • Adds an explanatory comment about why the semantics change is scoped to Windows.

@@ -1,4 +1,5 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- Issue #36940: Windows only. On iOS/Mac Catalyst, setting Description on the Border makes the container a single accessibility element, preventing VoiceOver from focusing the inner CheckBox. -->
@kubaflo
kubaflo changed the base branch from main to inflight/current August 14, 2026 23:36
@kubaflo
kubaflo merged commit df326d4 into dotnet:inflight/current Aug 14, 2026
38 checks passed
@github-actions github-actions Bot added this to the .NET 10 SR11 milestone Aug 14, 2026
kubaflo pushed a commit that referenced this pull request Aug 27, 2026
…me instead of item content in Narrator (#37421)

<!-- Please let the below note in for people that find this PR -->
> [!NOTE]
> Are you waiting for the changes in this PR to be merged?
> It would be very helpful if you could [test the resulting
artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from
this PR and let us know in a comment if this change resolves your issue.
Thank you!

### Root Cause
On Windows, `CollectionView`'s legacy handler (CV1), which is based on
`ListView`, derives each item's screen reader name from the root element
of the `DataTemplate`.

When neither `AutomationProperties.Name` nor
`SemanticProperties.Description` is set on that root element, WinUI
falls back to calling `.ToString()` on the bound item. As a result,
Narrator announces the internal type name:
`Microsoft.Maui.Controls.Platform.ItemTemplateContext` instead of
meaningful item content.

This is native WinUI `ListView` behavior documented by Microsoft and is
not specific to MAUI.

### Description of Change
Set `SemanticProperties.Description` on the `DataTemplate` root,
`TaskView`'s `Border`, and scope it to Windows only. This ensures
Narrator announces the bound task title instead of the internal type
name.

Windows-only scoping is necessary because applying
`SemanticProperties.Description` on iOS and Mac Catalyst causes the root
element to become a single accessibility element, preventing VoiceOver
from navigating to the inner `CheckBox`.

### Issues Fixed

Fixes #36940 

### Platforms Tested

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

### Screenshots
| Before Fix | After Fix |
|------------|-----------|
| <video width="350" alt="withoutfix"
src="https://github.com/user-attachments/assets/b35e24bc-0c59-4db1-8210-1be4fe5c2333"
/> | <video width="350" alt="withfix"
src="https://github.com/user-attachments/assets/89ad2456-5c9d-4060-8685-e108e9fe8c3e"
/> |
kubaflo pushed a commit that referenced this pull request Sep 2, 2026
…me instead of item content in Narrator (#37421)

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

On Windows, `CollectionView`'s legacy handler (CV1), which is based on
`ListView`, derives each item's screen reader name from the root element
of the `DataTemplate`.

When neither `AutomationProperties.Name` nor
`SemanticProperties.Description` is set on that root element, WinUI
falls back to calling `.ToString()` on the bound item. As a result,
Narrator announces the internal type name:
`Microsoft.Maui.Controls.Platform.ItemTemplateContext` instead of
meaningful item content.

This is native WinUI `ListView` behavior documented by Microsoft and is
not specific to MAUI.

Set `SemanticProperties.Description` on the `DataTemplate` root,
`TaskView`'s `Border`, and scope it to Windows only. This ensures
Narrator announces the bound task title instead of the internal type
name.

Windows-only scoping is necessary because applying
`SemanticProperties.Description` on iOS and Mac Catalyst causes the root
element to become a single accessibility element, preventing VoiceOver
from navigating to the inner `CheckBox`.

Fixes #36940

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

| Before Fix | After Fix |
|------------|-----------|
| <video width="350" alt="withoutfix"
src="https://github.com/user-attachments/assets/b35e24bc-0c59-4db1-8210-1be4fe5c2333"
/> | <video width="350" alt="withfix"
src="https://github.com/user-attachments/assets/89ad2456-5c9d-4060-8685-e108e9fe8c3e"
/> |
kubaflo pushed a commit that referenced this pull request Sep 3, 2026
…me instead of item content in Narrator (#37421)

<!-- Please let the below note in for people that find this PR -->
> [!NOTE]
> Are you waiting for the changes in this PR to be merged?
> It would be very helpful if you could [test the resulting
artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from
this PR and let us know in a comment if this change resolves your issue.
Thank you!

### Root Cause
On Windows, `CollectionView`'s legacy handler (CV1), which is based on
`ListView`, derives each item's screen reader name from the root element
of the `DataTemplate`.

When neither `AutomationProperties.Name` nor
`SemanticProperties.Description` is set on that root element, WinUI
falls back to calling `.ToString()` on the bound item. As a result,
Narrator announces the internal type name:
`Microsoft.Maui.Controls.Platform.ItemTemplateContext` instead of
meaningful item content.

This is native WinUI `ListView` behavior documented by Microsoft and is
not specific to MAUI.

### Description of Change
Set `SemanticProperties.Description` on the `DataTemplate` root,
`TaskView`'s `Border`, and scope it to Windows only. This ensures
Narrator announces the bound task title instead of the internal type
name.

Windows-only scoping is necessary because applying
`SemanticProperties.Description` on iOS and Mac Catalyst causes the root
element to become a single accessibility element, preventing VoiceOver
from navigating to the inner `CheckBox`.

### Issues Fixed

Fixes #36940 

### Platforms Tested

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

### Screenshots
| Before Fix | After Fix |
|------------|-----------|
| <video width="350" alt="withoutfix"
src="https://github.com/user-attachments/assets/b35e24bc-0c59-4db1-8210-1be4fe5c2333"
/> | <video width="350" alt="withfix"
src="https://github.com/user-attachments/assets/89ad2456-5c9d-4060-8685-e108e9fe8c3e"
/> |
kubaflo pushed a commit that referenced this pull request Sep 6, 2026
…me instead of item content in Narrator (#37421)

<!-- Please let the below note in for people that find this PR -->
> [!NOTE]
> Are you waiting for the changes in this PR to be merged?
> It would be very helpful if you could [test the resulting
artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from
this PR and let us know in a comment if this change resolves your issue.
Thank you!

### Root Cause
On Windows, `CollectionView`'s legacy handler (CV1), which is based on
`ListView`, derives each item's screen reader name from the root element
of the `DataTemplate`.

When neither `AutomationProperties.Name` nor
`SemanticProperties.Description` is set on that root element, WinUI
falls back to calling `.ToString()` on the bound item. As a result,
Narrator announces the internal type name:
`Microsoft.Maui.Controls.Platform.ItemTemplateContext` instead of
meaningful item content.

This is native WinUI `ListView` behavior documented by Microsoft and is
not specific to MAUI.

### Description of Change
Set `SemanticProperties.Description` on the `DataTemplate` root,
`TaskView`'s `Border`, and scope it to Windows only. This ensures
Narrator announces the bound task title instead of the internal type
name.

Windows-only scoping is necessary because applying
`SemanticProperties.Description` on iOS and Mac Catalyst causes the root
element to become a single accessibility element, preventing VoiceOver
from navigating to the inner `CheckBox`.

### Issues Fixed

Fixes #36940 

### Platforms Tested

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

### Screenshots
| Before Fix | After Fix |
|------------|-----------|
| <video width="350" alt="withoutfix"
src="https://github.com/user-attachments/assets/b35e24bc-0c59-4db1-8210-1be4fe5c2333"
/> | <video width="350" alt="withfix"
src="https://github.com/user-attachments/assets/89ad2456-5c9d-4060-8685-e108e9fe8c3e"
/> |
kubaflo pushed a commit that referenced this pull request Sep 7, 2026
…me instead of item content in Narrator (#37421)

<!-- Please let the below note in for people that find this PR -->
> [!NOTE]
> Are you waiting for the changes in this PR to be merged?
> It would be very helpful if you could [test the resulting
artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from
this PR and let us know in a comment if this change resolves your issue.
Thank you!

### Root Cause
On Windows, `CollectionView`'s legacy handler (CV1), which is based on
`ListView`, derives each item's screen reader name from the root element
of the `DataTemplate`.

When neither `AutomationProperties.Name` nor
`SemanticProperties.Description` is set on that root element, WinUI
falls back to calling `.ToString()` on the bound item. As a result,
Narrator announces the internal type name:
`Microsoft.Maui.Controls.Platform.ItemTemplateContext` instead of
meaningful item content.

This is native WinUI `ListView` behavior documented by Microsoft and is
not specific to MAUI.

### Description of Change
Set `SemanticProperties.Description` on the `DataTemplate` root,
`TaskView`'s `Border`, and scope it to Windows only. This ensures
Narrator announces the bound task title instead of the internal type
name.

Windows-only scoping is necessary because applying
`SemanticProperties.Description` on iOS and Mac Catalyst causes the root
element to become a single accessibility element, preventing VoiceOver
from navigating to the inner `CheckBox`.

### Issues Fixed

Fixes #36940 

### Platforms Tested

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

### Screenshots
| Before Fix | After Fix |
|------------|-----------|
| <video width="350" alt="withoutfix"
src="https://github.com/user-attachments/assets/b35e24bc-0c59-4db1-8210-1be4fe5c2333"
/> | <video width="350" alt="withfix"
src="https://github.com/user-attachments/assets/89ad2456-5c9d-4060-8685-e108e9fe8c3e"
/> |
kubaflo pushed a commit that referenced this pull request Sep 8, 2026
…me instead of item content in Narrator (#37421)

<!-- Please let the below note in for people that find this PR -->
> [!NOTE]
> Are you waiting for the changes in this PR to be merged?
> It would be very helpful if you could [test the resulting
artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from
this PR and let us know in a comment if this change resolves your issue.
Thank you!

### Root Cause
On Windows, `CollectionView`'s legacy handler (CV1), which is based on
`ListView`, derives each item's screen reader name from the root element
of the `DataTemplate`.

When neither `AutomationProperties.Name` nor
`SemanticProperties.Description` is set on that root element, WinUI
falls back to calling `.ToString()` on the bound item. As a result,
Narrator announces the internal type name:
`Microsoft.Maui.Controls.Platform.ItemTemplateContext` instead of
meaningful item content.

This is native WinUI `ListView` behavior documented by Microsoft and is
not specific to MAUI.

### Description of Change
Set `SemanticProperties.Description` on the `DataTemplate` root,
`TaskView`'s `Border`, and scope it to Windows only. This ensures
Narrator announces the bound task title instead of the internal type
name.

Windows-only scoping is necessary because applying
`SemanticProperties.Description` on iOS and Mac Catalyst causes the root
element to become a single accessibility element, preventing VoiceOver
from navigating to the inner `CheckBox`.

### Issues Fixed

Fixes #36940 

### Platforms Tested

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

### Screenshots
| Before Fix | After Fix |
|------------|-----------|
| <video width="350" alt="withoutfix"
src="https://github.com/user-attachments/assets/b35e24bc-0c59-4db1-8210-1be4fe5c2333"
/> | <video width="350" alt="withfix"
src="https://github.com/user-attachments/assets/89ad2456-5c9d-4060-8685-e108e9fe8c3e"
/> |
kubaflo pushed a commit that referenced this pull request Sep 9, 2026
…me instead of item content in Narrator (#37421)

<!-- Please let the below note in for people that find this PR -->
> [!NOTE]
> Are you waiting for the changes in this PR to be merged?
> It would be very helpful if you could [test the resulting
artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from
this PR and let us know in a comment if this change resolves your issue.
Thank you!

### Root Cause
On Windows, `CollectionView`'s legacy handler (CV1), which is based on
`ListView`, derives each item's screen reader name from the root element
of the `DataTemplate`.

When neither `AutomationProperties.Name` nor
`SemanticProperties.Description` is set on that root element, WinUI
falls back to calling `.ToString()` on the bound item. As a result,
Narrator announces the internal type name:
`Microsoft.Maui.Controls.Platform.ItemTemplateContext` instead of
meaningful item content.

This is native WinUI `ListView` behavior documented by Microsoft and is
not specific to MAUI.

### Description of Change
Set `SemanticProperties.Description` on the `DataTemplate` root,
`TaskView`'s `Border`, and scope it to Windows only. This ensures
Narrator announces the bound task title instead of the internal type
name.

Windows-only scoping is necessary because applying
`SemanticProperties.Description` on iOS and Mac Catalyst causes the root
element to become a single accessibility element, preventing VoiceOver
from navigating to the inner `CheckBox`.

### Issues Fixed

Fixes #36940 

### Platforms Tested

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

### Screenshots
| Before Fix | After Fix |
|------------|-----------|
| <video width="350" alt="withoutfix"
src="https://github.com/user-attachments/assets/b35e24bc-0c59-4db1-8210-1be4fe5c2333"
/> | <video width="350" alt="withfix"
src="https://github.com/user-attachments/assets/89ad2456-5c9d-4060-8685-e108e9fe8c3e"
/> |
kubaflo pushed a commit that referenced this pull request Sep 11, 2026
…me instead of item content in Narrator (#37421)

<!-- Please let the below note in for people that find this PR -->
> [!NOTE]
> Are you waiting for the changes in this PR to be merged?
> It would be very helpful if you could [test the resulting
artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from
this PR and let us know in a comment if this change resolves your issue.
Thank you!

### Root Cause
On Windows, `CollectionView`'s legacy handler (CV1), which is based on
`ListView`, derives each item's screen reader name from the root element
of the `DataTemplate`.

When neither `AutomationProperties.Name` nor
`SemanticProperties.Description` is set on that root element, WinUI
falls back to calling `.ToString()` on the bound item. As a result,
Narrator announces the internal type name:
`Microsoft.Maui.Controls.Platform.ItemTemplateContext` instead of
meaningful item content.

This is native WinUI `ListView` behavior documented by Microsoft and is
not specific to MAUI.

### Description of Change
Set `SemanticProperties.Description` on the `DataTemplate` root,
`TaskView`'s `Border`, and scope it to Windows only. This ensures
Narrator announces the bound task title instead of the internal type
name.

Windows-only scoping is necessary because applying
`SemanticProperties.Description` on iOS and Mac Catalyst causes the root
element to become a single accessibility element, preventing VoiceOver
from navigating to the inner `CheckBox`.

### Issues Fixed

Fixes #36940 

### Platforms Tested

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

### Screenshots
| Before Fix | After Fix |
|------------|-----------|
| <video width="350" alt="withoutfix"
src="https://github.com/user-attachments/assets/b35e24bc-0c59-4db1-8210-1be4fe5c2333"
/> | <video width="350" alt="withfix"
src="https://github.com/user-attachments/assets/89ad2456-5c9d-4060-8685-e108e9fe8c3e"
/> |
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 14, 2026
@sheiksyedm sheiksyedm added the community ✨ Community Contribution label Oct 1, 2026
@github-actions github-actions Bot modified the milestones: .NET 10 SR11, .NET 10 SR12 Oct 21, 2026

This branch was previously deployed

1 inactive deployment
copilot-pat-pool — 28f013ba Deployed Aug 14, 2026 by praveenkumarkarunanithi via conclusion #1288
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-templates Project templates, Item Templates for Blazor and MAUI collectionview-cv1 community ✨ Community Contribution partner/syncfusion Issues / PR's with Syncfusion collaboration platform/windows t/a11y Relates to accessibility

Projects

None yet

4 participants