Search code examples
.netwpftouch

Handling mouse and touch events


is there a way to handle touchup and touchdown events exact the same way like mouseup and mousedown? If I do a press with one finger then windows want to do a left mouse button click to show a contextmenu. The mousedown event is not fired. Are there events to simply react to touchdown and touchup like mosueup and mousedown? In Win32 there were the pointer-events which works as expected.


Solution

  • I found it! You must set Stylus.IsPressAndHoldEnabled to false to get the TouchDown event when pressing the finger (without lifting it).