winforms
winforms copied to clipboard
Removing extra cases in GetPropertyValue from from children classes.
Fixes #6236
Proposed changes
- Moved returning values of the virtual properties to the base class.
- Ordered switch cases in
AccessibleObject.GetPropertyValue
alphabetically. - Removed extra
RecnatgleBounds
overridings. - Used switch expression instead of if blocks.
Customer Impact
- It's a technical refactoring.
Regression?
- No
Risk
- Minimal
Test methodology
- Unit tests
Test environment(s)
- 7.0.100-preview.5.22307.18
Microsoft Reviewers: Open in CodeFlow
Adding no-merge
label to take this in NET8 because this change is a refactoring and thus does not meet the NET7 bug bar.
Please send privates to CTIs to test this change, but let them know that this is a low priority task because it will go into NET8.
Tested this PR with changed controls in Accessibility tools, no new issue was found.