winforms icon indicating copy to clipboard operation
winforms copied to clipboard

[Accessibility] Some sub-items of StatusStrip are still show all properties in the Inspect Tree after destroyed it

Open Zheng-Li01 opened this issue 3 years ago • 1 comments

  • .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:

  1. Extract the application. ReproProject.zip
  2. Build and run it.
  3. Clicking the button1 to show the Form2.
  4. Open the Inspect tool to check the contorls & its sub-items.
  5. 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 image NewCoreIssue

Zheng-Li01 avatar May 27 '21 06:05 Zheng-Li01

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

vladimir-krestov avatar Aug 23 '22 09:08 vladimir-krestov

Verify this issue in Accessibility Insight tool, the UIA tree is updated every time, doesn't repro this issue, so close it.

Olina-Zhang avatar Nov 04 '22 01:11 Olina-Zhang