#24784·uno

[Skia/Win32] Accessibility raises a UIA BoundingRectangle event for every moved element on each layout pass

Author: MartinZikmundCreated Sep 28, 2026Updated Sep 28, 2026
Labelstriage/untriaged

Current behavior

On the Skia Win32 head, Win32Accessibility.OnSizeOrOffsetChanged raises a UIA BoundingRectangle property-changed event (UiaRaiseAutomationPropertyChangedEvent) for every element whose visual moves or resizes. UIA clients such as PowerToys, TextInputHost and Chromium browsers are listening on most desktops, so while scrolling a virtualized list every frame pays a native UIA call per realized element.

Profiled scroll of an ItemsRepeater + UniformGridLayout grid of 2,837 Fluent Button tiles (12 × 60 steps of 40 px): ~270–390 ms of UI-thread time is under AccessibilityRouter.OnVisualOffsetOrSizeChanged → Win32Accessibility.OnSizeOrOffsetChanged. Uno 6.5 had no such cost.

Expected behavior

Match WinUI: WinUI never raises BoundingRectangle changes on layout. UIA clients pull get_BoundingRectangle on demand (CUIAWrapper::get_BoundingRectangle).

How to reproduce it (as minimally and precisely as possible)

  1. Skia desktop app on Windows, ScrollViewer > ItemsRepeater with UniformGridLayout, ~2,800 Button items.
  2. Scroll with ChangeView(null, offset, null, disableAnimation: true) in 40 px steps.
  3. Profile with dotnet-trace (dotnet-sampled-thread-time): Win32Accessibility.OnSizeOrOffsetChanged shows up on the UI thread every frame.

Workaround ️

None from app code.

Renderer

  • Skia
  • Native

Affected platforms ️

Desktop (Windows)

Uno.Sdk version (and other relevant versions)

Uno.Sdk 6.7.22 (Uno.WinUI 6.7.103), 6.8.0-dev.51, and master.

IDE version ‍

No response

Anything else we need to know?

Found while investigating the remaining 6.5 → 6.8 scroll gap reported by @mikernet in #23984.