Certain members of AccessText should be public
- Dominant language
- C#
- Stars
- 7.7k
- Forks
- 1.3k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 61
Description
Certain members of `AccessText` should be public to enable people to write better code by avoiding code copies or usage of reflection.
The members in `AccessText` especially affect custom automation peers for button like controls.
Members that should be public:
- `AccessKeyMarker` => this would avoid the need to hard code "_"
- `RemoveAccessKeyMarker` => this avoid the need to write custom code to achieve the same
Original question/request:
-----
Currently `AccessText.RemoveAccessKeyMarker` is marked as internal.
To be able to write `AutomationPeer` classes of the same quality as the included ones, `AccessText.RemoveAccessKeyMarker` should be public.
To be honest, i think that all classes/methods used to write controls/automation peers should be public and not internal.
Thinking further about this:
Should we create a list of things that should be public instead of internal?
Contributor guide
Assessment
This issue has not been assessed yet.