winforms
winforms copied to clipboard
[Accessibility] Some sub-items of StatusStrip are still show all properties in the Inspect Tree after destroyed it
-
.NET Core Version: .NET 6.0 6.0.100-preview.6.21276.13
-
Have you experienced this same bug with .NET Framework?: Yes
Problem description: Some sub-items StatusStrip/ToolStrip/MenuStrip/ComboBox/PropertyGrid/DataGridView are still show all properties in the Inspect Tree after destroyed it
Expected behavior: The StatusStrip/ToolStrip/MenuStrip/ComboBox/PropertyGrid/DataGridView control and its sub-items are not show all properties in the Inspect Tree after destroyed it.
Minimal repro:
- Extract the application. ReproProject.zip
- Build and run it.
- Clicking the button1 to show the Form2.
- Open the Inspect tool to check the contorls & its sub-items.
- Closed the Form2, and then continue to check the contorls & its sub-items in the inspect tool.
Actual Results:
Some sub-items of StatusStrip are still show all properties in the Inspect Tree after destroyed it
The same as for #4851, Inspect is obsolete tools, it caches old values and doesn't reflect real accessibility tree after any changes. Inspect should be updated after any changes in UI (like we did for memory leaks). Sometimes Inspect updates the tree itself, but sometimes not. Narrator works well with trees and AI as well. Moreover, AI is current UIA dev tool, so @Zheng-Li01, please check this case in AI and make sure that AI updates its accessibility tree every time, if so, please close this Issue
Verify this issue in Accessibility Insight tool, the UIA tree is updated every time, doesn't repro this issue, so close it.