Skip to content

UIAutomation: ITransformPattern2 #10953

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

dotMorten
Copy link
Contributor

@dotMorten dotMorten commented Jun 27, 2025

⚠️ 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.

[DllImport(DllImport.UIAutomationCore, EntryPoint = "TransformPattern2_Zoom", CharSet = CharSet.Unicode)]
private static extern int RawTransformPattern2_Zoom(SafePatternHandle hobj, double degrees); // TODO: Needs to use Microsoft UI Automation Component Object Model (COM) interfaces instead.
[DllImport(DllImport.UIAutomationCore, EntryPoint = "TransformPattern2_ZoomByUnit", CharSet = CharSet.Unicode)]
private static extern int RawTransformPattern2_ZoomByUnit(SafePatternHandle hobj, ZoomUnit unit); // TODO: Needs to use Microsoft UI Automation Component Object Model (COM) interfaces instead.

Reference:

Customer Impact

Allows creating more accessible applications.

Testing

Risk

Microsoft Reviewers: Open in CodeFlow

@dotMorten dotMorten changed the title UIAutomatin: ITransformPattern2 UIAutomation: ITransformPattern2 Jun 27, 2025
@dotnet-policy-service dotnet-policy-service bot added PR metadata: Label to tag PRs, to facilitate with triage Community Contribution A label for all community Contributions draft labels Jun 27, 2025
Copy link

codecov bot commented Jun 27, 2025

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).

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%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Community Contribution A label for all community Contributions draft PR metadata: Label to tag PRs, to facilitate with triage
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ITransformProvider2/PatternInterface.Transform2 is missing
1 participant