UIAutomation: ITransformPattern2
⚠️ Work in progress
Fixes #10847
Description
Adds the ITransformProvider2 pattern that allows UI Automation / Accessibility tooling to zoom.
TODO: Use the Microsoft UI Automation Component Object Model (COM) interfaces instead to call the new TransformPattern2 methods in uiautomationcoreapi.h, since the new APIs doesn't support the old p-invoke methods which are deprecated.
https://github.com/dotnet/wpf/blob/e786186f5291893c37d03b4532154fd5ac996582/src/Microsoft.DotNet.Wpf/src/UIAutomation/UIAutomationClient/MS/Internal/Automation/UiaCoreApi.cs#L1350-L1354
Reference:
- https://learn.microsoft.com/en-us/windows/win32/api/uiautomationclient/nf-uiautomationclient-iuiautomationtransformpattern2-zoom
- https://learn.microsoft.com/en-us/windows/win32/api/uiautomationclient/nf-uiautomationclient-iuiautomationtransformpattern2-zoombyunit
Customer Impact
Allows creating more accessible applications.
Testing
Risk
Microsoft Reviewers: Open in CodeFlow
Codecov Report
Attention: Patch coverage is 0% with 54 lines in your changes missing coverage. Please review.
Project coverage is 13.37189%. Comparing base (
28843aa) to head (e786186). Report is 18 commits behind head on main.
Additional details and impacted files
@@ Coverage Diff @@
## main #10953 +/- ##
===================================================
- Coverage 13.52892% 13.37189% -0.15703%
===================================================
Files 3319 3321 +2
Lines 664894 664947 +53
Branches 74674 74674
===================================================
- Hits 89953 88916 -1037
- Misses 572398 573493 +1095
+ Partials 2543 2538 -5
| Flag | Coverage Δ | |
|---|---|---|
| Debug | 13.37189% <0.00000%> (-0.15703%) |
:arrow_down: |
Flags with carried forward coverage won't be shown. Click here to find out more.
:rocket: New features to boost your workflow:
- :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.