用手指(触摸屏)涂上墨水扫描(触摸屏)不是鼠标 - Mousemove而不是MouseClick

StackOverflow https://stackoverflow.com/questions/9021088

  •  14-11-2019
  •  | 
  •  

我在WPF窗口上使用Inkcanvas(C#)。 当我将鼠标拖动到画布时,此画布正在运行,然后单击鼠标以绘制我想要的东西。

我打算将此放在触摸屏上。正如我的悬道,屏幕上的触摸(手指或笔)将充当鼠标移动,而不是鼠标键,因此没有任何东西可以绘制。

如何实现这一目标?

有帮助吗?

解决方案

That assumption is wrong, all touch behaviors are interpreted as mouse interaction by default if you do not override it, a touch turns into MouseDown, so it will work (i have a touch-screen myself).

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top