dotnet / dotnet/wpf

Certain members of ItemAutomationPeer should be public

Open
#1,931 0 comments 1 reaction 0 assignees View on GitHub
Enhancement Requested
Dominant language
C#
Stars
7.7k
Forks
1.3k
Avg merge
1d 11h
Merged PRs (30d)
61

Description

Certain members of `ItemAutomationPeer` should be public to enable people to write better code by avoiding code copies or usage of reflection.
The members in `ItemAutomationPeer` especially affect custom automation peers for `ItemsControl` like controls.
Those internal members are, for example, used in `RibbonGroupDataAutomationPeer`.

Members that should be public:
- `GetWrapper`
- `GetWrapperPeer`

Exposing those members would remove the need to use reflection to call those methods, as their code can't be easily copied as `GetWrapper` relies on the internal type `IGeneratorHost`.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.