Skip to content

Implementing LegacyIAccessiblePattern supporting for ControlAccessibleObject#3412

Merged
RussKie merged 1 commit intodotnet:masterfrom
vladimir-krestov:dev/v-vlkres/Implementing_LegacyIAccessiblePattern_ForAllControls
Jun 11, 2020
Merged

Implementing LegacyIAccessiblePattern supporting for ControlAccessibleObject#3412
RussKie merged 1 commit intodotnet:masterfrom
vladimir-krestov:dev/v-vlkres/Implementing_LegacyIAccessiblePattern_ForAllControls

Conversation

@vladimir-krestov
Copy link
Contributor

@vladimir-krestov vladimir-krestov commented Jun 8, 2020

Fixes #3410

Proposed changes

  • Set IsPatternSupported for LegacyIAccessiblePatternId as true in ControlAccessibleObject. It will cause all control accessible objects to implement LegacyIAccessible.

Customer Impact

  • A customer can see correct some accessible properties for accessible objects, which didn't implement LegacyIAccessiblePattern.

Regression?

  • No

Risk

  • Minimal

Test methodology

  • manual testing
  • unit testing
  • CTI

Accessibility testing

  • using Inspect tool

Test environment(s)

  • Microsoft Windows [Version 10.0.18363.836]
  • .Net Version: 5.0.100-preview.7.20305.3
Microsoft Reviewers: Open in CodeFlow

Tanya-Solyanik
Tanya-Solyanik previously approved these changes Jun 9, 2020
Copy link
Contributor

@Tanya-Solyanik Tanya-Solyanik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How do we ensure expected != true?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a fundamental point. At the moment, Control as a type has SupportsUiaProvider as false. We can't just set it as true because it will break all Accessibility. So in the nearest future, SupportsUiaProvider will be false.
I can add Assert.False(expected) in the test to make sure, that is right.
Please, correct me if I understood this incorrectly.
Thanks.

 for all control accessible objects, which support uia provider
@vladimir-krestov vladimir-krestov force-pushed the dev/v-vlkres/Implementing_LegacyIAccessiblePattern_ForAllControls branch from 0b15d1b to 1d8a8ad Compare June 11, 2020 07:09
@RussKie RussKie merged commit 93cf1c0 into dotnet:master Jun 11, 2020
@ghost ghost added this to the 5.0 Preview7 milestone Jun 11, 2020
@RussKie
Copy link
Contributor

RussKie commented Jun 11, 2020

Thank you

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Needs to implement UIA_LegacyIAccessiblePattern for all control accessible objects

3 participants