Closed
Description
.NET version
7.0
Did it work in .NET Framework?
No
Did it work in any of the earlier releases of .NET Core or .NET 5+?
No
Issue description
Once #6309 is merged, edit control of ListViewItem will be placed as a last child of the ListView in accessibility tree (as of now it's a first child). Even though it's the same behavior as in the Windows File Explorer, it seems incorrect and also ignores ListView group structure. A more logical approach would be to put the edit control inside an item it belongs to — similar to DataGridView. See screenshots and discussion from #6309 (comment) and #6309 (comment) for more info.
Steps to reproduce
- Open Inspect or Accessibility Insights tool
- Build and run WinformsControlsTest app
- Open ListView window
- Click twice on any item on the top ListView to start editing it
- Find Edit control in the accessibility tool