ToolStrip overflow menu is visible in UI Automation tree in Content View
See original GitHub issue.NET version
8.0.100-preview.4.23260.5
Did it work in .NET Framework?
Yes
Did it work in any of the earlier releases of .NET Core or .NET 5+?
No
Issue description
ToolStrip can display some of its items in an overflow menu, when ToolStrip.Size is not big enough, or item has ToolStripItem.Overflow set to Always. This menu is opened under a ‘ToolBar Options’ menu item.
According to MenuItem UIA tree structure overflow menu should be absent from UIA tree in content view:
For the content view, Menu is absent from the UI Automation tree because it does not convey meaningful information to the end user.
Actual result
Menu is visible in content view:
Steps to reproduce
Sample app: WinFormsApp1.zip
Issue Analytics
- State:
- Created 3 months ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
How to: Manage ToolStrip Overflow in Windows Forms
The ToolStripOverflowButton appears, and overflow-enabled items are moved into the drop-down overflow menu. This allows you to customize and ...
Read more >Automation UI - Custom Controls Won't Show Up
I have an issue with automating UI. I have a code that works, but is hard to debug - So I created one...
Read more >Overflow menu
An overflow menu groups a set of actions in a responsive horizontal list to help declutter an interface. Actions can be set to...
Read more >Debug your layout with Layout Inspector and ...
The Layout Inspector in Android Studio allows you to debug the layout of your app by showing a view hierarchy and allowing you...
Read more >Activities - Export UI Tree
Exports all UI elements and their respective attributes and values found in the indicated element as an XML or JSON file. This activity...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Verified this issue in the latest .NET 8.0.100-preview.7.23363.19, select the Content option in Accessibility Insights tool, then retest the test app again, the issue is fixed that: Menu option is removed in content view now.

Verified with .NET SDK 8.0.100-preview.7.23376.3 test pass build, this issue was fixed with above same verification result.