Make StylusDeviceBase public
- Dominant language
- C#
- Stars
- 7.7k
- Forks
- 1.3k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 61
Description
I'm developing in a touch screen application which will run on the dual-screen device. And the dual-screen device is the custom device which does not follow the standard specification.
I want to raise the Stylus events when I receviced the private message from the custom dual-screen devices.
But as you can see, we can easily raise the touch event by inherit the TouchDevice. And we hard to raise the Stylues event, because we hard to create a StyluesDevice object.
The StylusDevice only created in StylusDeviceBase in all the WPF framework code.
https://github.com/dotnet/wpf/blob/eb146912c43d7caa6ab60178046793b052b057fa/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Stylus/Common/StylusDeviceBase.cs#L63-L66
We can do it easily, assuming the StylusDeviceBase is public and the all the member in StylusDeviceBase is public.
In other words, can we inherit from StylusDevice?
Contributor guide
Assessment
This issue has not been assessed yet.