Add missing AutomationPeers from built-in Controls. by jmacato · Pull Request #21322 · AvaloniaUI/Avalonia (original) (raw)

@jmacato

grokys

@jmacato

@jmacato

robloo

@jmacato

@jmacato

@jmacato

Flatten MenuItem children under NativeMenuBarAutomationPeer and raise ColorChanged when Color is set directly so ColorSpectrumAutomationPeer notifies AT clients.

@jmacato

@jmacato

@jmacato

@jmacato

Bisect confirmed this override caused 5 Windows IT tests (Slider, Screen, DragDrop) to fail by producing an inconsistent UIA tree where MenuItem peers list NativeMenuBar as parent while their visual parent is the inner Menu. Reverted to the thin peer that only reports ControlType=MenuBar, and dropped the now-irrelevant children assertion test.

@MrJul MrJul deleted the features/more-autopeers branch

May 20, 2026 00:15

MrJul pushed a commit to MrJul/Avalonia that referenced this pull request

May 28, 2026

@jmacato @MrJul

Flatten MenuItem children under NativeMenuBarAutomationPeer and raise ColorChanged when Color is set directly so ColorSpectrumAutomationPeer notifies AT clients.

Bisect confirmed this override caused 5 Windows IT tests (Slider, Screen, DragDrop) to fail by producing an inconsistent UIA tree where MenuItem peers list NativeMenuBar as parent while their visual parent is the inner Menu. Reverted to the thin peer that only reports ControlType=MenuBar, and dropped the now-irrelevant children assertion test.

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})