Skip to content

Certain members of AccessText should be public #1930

Open
@batzen

Description

@batzen

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Enhancement RequestedProduct code improvement that does NOT require public API changes/additions

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions