-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
This project contains incomplete code for adding touch support to WinForms projects. This code lives in:
src/Common.WinForms/Controls/ITouchControl.cssrc/Common.WinForms/Controls/TouchForm.cssrc/Common.WinForms/Controls/TouchPanel.cssrc/Common.WinForms/Native/WinFormsUtils.Touch.cs
Currently it tries to represent raw touch events. We should redesign this to expose the higher-level Windows Touch Gestures instead.
Replace the delegates in ITouchControl and its implementations from TouchDown, TouchUp and TouchMove with Tap, Pan, Zoom, etc..
Look at https://github.com/microsoft/Windows-classic-samples/blob/main/Samples/Win7Samples/Touch/MTGestures/CS/MTGestures.cs for details how the native interop works.
In our own implementation we want to keep all the native code nicely isolated in WinFormsUtils.Touch.cs.
Copilot
Metadata
Metadata
Assignees
Labels
No labels