Skip to content

Restore pre-NET8 automation behavior in the ItemsControl - #8712

Closed
jimm98y wants to merge 2 commits into
dotnet:mainfrom
jimm98y:main
Closed

jimm98y wants to merge 2 commits into
dotnet:mainfrom
jimm98y:main

Conversation

@jimm98y

@jimm98y jimm98y commented Jan 20, 2024 •

Copy link
Copy Markdown

Fixes #8679

Description

Pull request #6862 fixed an issue with grouped ItemsControl not exposing grouped items to the automation, but as a side-effect it broke automation in ItemsControl without grouping. This pull request keeps the fix for grouped ItemsControl and restores the original behavior for non-grouped ItemsControl.

Customer Impact

Automation is broken for non-grouped ItemsControl.

Regression

Yes. This is broken since NET8, in NET7 and NET6 this was working correctly.

Testing

Sample app from #6861 on NET6 was updated with XAML from sample app in #8679 and the custom ItemsControl code was patched with the proposed fix test.zip. Both grouped and ungrouped ItemsControls are working.

Risk

Like the original change that has caused the issue in NET8 automation, even this pull request can have some unforeseen consequences in scenarios not covered by the current test cases.

Microsoft Reviewers: Open in CodeFlow

@jimm98y
jimm98y requested a review from a team as a code owner January 20, 2024 16:55
@ghost ghost assigned jimm98y Jan 20, 2024
@ghost ghost added the PR metadata: Label to tag PRs, to facilitate with triage label Jan 20, 2024
@ghost
ghost requested review from dipeshmsft and singhashish-wpf January 20, 2024 16:55
@ghost ghost added the Community Contribution A label for all community Contributions label Jan 20, 2024
@lindexi

lindexi commented Jan 22, 2024

Copy link
Copy Markdown
Member

cc @walterlv

@lindexi

lindexi commented Jan 22, 2024

Copy link
Copy Markdown
Member

Thank you @jimm98y . And I'm sorry, but I don't believe your current modifications will resolve issue #6861, and may instead reopen the already fixed issue #6861. I believe that including Item in automation is a necessary action.

@lindexi

lindexi commented Jan 22, 2024

Copy link
Copy Markdown
Member

@jimm98y Could you review the #8715 ? I think his modifications can maintain compatibility with the old behaviors while also supporting elements within the Group. Thank you.

@majomix

majomix commented Apr 4, 2024

Copy link
Copy Markdown

Hello, I'm joining this thread to mention this is a critical issue for our test automation. We're awaiting the update.

@Thakur987

Copy link
Copy Markdown

Hi, Is there any update on this issue?

@lindexi

lindexi commented Jun 19, 2024

Copy link
Copy Markdown
Member

@Thakur987 Sorry, no. It looks like a solution is being discussed.

@jimm98y
jimm98y requested a review from a team as a code owner June 25, 2026 18:37
@jimm98y jimm98y closed this by deleting the head repository Jun 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Community Contribution A label for all community Contributions Included in test pass PR metadata: Label to tag PRs, to facilitate with triage Status:Completed Status:Proposed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Windows Automation tree breaking change

5 participants