## WPF DataTemplate elements are now visible to UIA ### Scope Edge ### Version Introduced 4.5 ### Source Analyzer Status Available ### Change Description Previously, 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 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 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)