Layout View Resorting is breaking Windows Narrators ability to navigate through elements #6140
Labels
area/a11y
Relates to accessibility
area/layout 🔲
StackLayout, GridLayout, ScrollView, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter
platform/windows 🪟
t/bug
Something isn't working
Milestone
Description
The LayoutHandler sorts all of its children via
OrderByZIndex
which uses anArray.Sort
and a comparer. This causes the elements to all change logical position when they added to thePanel
.Narrator
is unable to reconstruct the semantic order just by the location of the elements on the screen.If you remove the
OrderByZIndex
call thenNarrator
works without any issues.OrderByZIndex
also appears to break TabIndex ordering as well.Steps to Reproduce
Possible workarounds
OrderByZIndex
so all elements with a matchingZindex
maintain the same logical order they are added to the layout as. I do wonder if this solution still doesn't quite work because it will still place two elements logically very far apart even though they visually aren't.Version with bug
Release Candidate 1 (current)
Last version that worked well
Unknown/Other
Affected platforms
Windows
Affected platform versions
WinUI
Did you find any workaround?
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: