Skip to content

Latest commit

 

History

History
39 lines (28 loc) · 1.14 KB

wpf-datatemplate-elements-are-now-visible-to-uia.md

File metadata and controls

39 lines (28 loc) · 1.14 KB

WPF DataTemplate elements are now visible to UIA

Scope

Edge

Version Introduced

4.5

Source Analyzer Status

Available

Change Description

Previously, xref:System.Windows.DataTemplate?displayProperty=name elements were invisible to UI Automation. Beginning in 4.5, UI Automation will detect these elements. This is useful in many cases, but can break tests that depend on UIA trees not containing xref:System.Windows.DataTemplate?displayProperty=name elements.

  • Quirked
  • Build-time break

Recommended Action

UI Automation tests for this app may need updated to account for the UIA tree now including previously invisible xref:System.Windows.DataTemplate?displayProperty=name elements. For example, tests that expect some elements to be next to each other may now need to expect previously invisible UIA elements in between. Or tests that rely on certain counts or indexes for UIA elements may need updated with new values.

Affected APIs

  • M:System.Windows.DataTemplate.#ctor
  • M:System.Windows.DataTemplate.#ctor(System.Object)

Category

Windows Presentation Foundation (WPF)