'C# WPF how to transfer touch handling to another window while the touch is not released
I'm currently working on a very weird application which requires smooth touch enter/leave handling while the touch is actually not released. And the deadline is due soon.
The operation will be like this:
- touch down on a maximized window and don't release all the way.
- move the touch and enter a button and the button color changes.
- after one second the button (pretend to be) clicked.
- switch to another maximized window while the touch is still down.
- repeat from step 2.
I'm using touch enter/leave events on every control object. It works well on first window but after switched to second window, the control on second window captures touch events with enter/leave triggered alternatively while the touch is still on the control. And because the alternating frequency is high enough to let me use timer to keep tracking if the touch is in "enter" status. In debug execute mode it works well. But the problem is, while I run without debug mode the alternating frequency is became too low to track, so I can't tell if the touch is still in the control. Now I need some help with this, which I hope the touch handling can be transferred to another window smoothly and handle them in normal way.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
