Menu items do not have position information when created via ItemsSource #10100
Labels
Accessibility
An issue related to accessibility enhancements or blockers.
Investigate
Requires further investigation by the WPF team.
Description
When a menu is populated with menu items in XAML, Windows Narrator can get the position info of each menu item and will announce them when focused.
However, when the menu items are generated from
ItemsSource
. The narrator won't be able to get position info and therefore won't announce itMore specifically,
MenuItemAutomationPeer
throws exceptions inGetPositionInSet
andGetSizeOfSet
ifItemsSource
is used.Reproduction Steps
ItemsSource
bound to a collection of stringExpected behavior
The narrator should announce the header of a menu item as well as its position, e.g. 3 of 5
Actual behavior
Only the header is announced by the narrator
Regression?
No response
Known Workarounds
No response
Impact
No response
Configuration
No response
Other information
No response
The text was updated successfully, but these errors were encountered: