Skip to content

ItemsControl Automation does not work even if the switch is set #6861

Closed

Description

@walterlv
  • .NET Core Version: 6.0.302
  • Windows version: 21H2 (22000.739) Windows Insider Preview Build25169.rs_prerelease.220723-1625
  • Does the bug reproduce also in WPF for .NET Framework 4.8?: Yes

Problem description:

If we group items of an ItemsControl, the items cannot be automated while only the group item can be.

There is a switch named Switch.System.Windows.Controls.ItemsControlDoesNotSupportAutomation that might work to fix this issue but it actually does not work no matter whether the value is set to true or false.

Actual behavior:

See the image, please. The first one is the original ItemsControl in the current dotnet version and the second one is the issue-fixed version. We can see the automation software cannot detect the inner item in the ItemsControl on the current dotnet version while everything works fine on the issue-fixed version.

image

Expected behavior:

As the image showed above.

Minimal repro:

Activity

  1. added
    Bug
    and removed on Aug 3, 2022
  2. ghost locked as resolved and limited conversation to collaborators on Feb 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions