question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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: before

Steps to reproduce

Sample app: WinFormsApp1.zip

Issue Analytics

  • State:closed
  • Created 3 months ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
John-Qiaocommented, Jul 14, 2023

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. Testresult4 Testresult3

0reactions
Ashley-Licommented, Jul 31, 2023

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found