1

I am using an InkCanvas on a Wpf Window (c#). This Canvas is working when I am draging the mouse to the canvas, and then CLICK the mouse to draw what ever I want.

I intend to put this on a touch screen. As I unsderstand, the touch on the screen (finger or pen) will act as Mouse-Move, and not Mouse-Click, therefore nothing will be painted.

How can I achieve this?

H.B.
  • 166,899
  • 29
  • 327
  • 400
Programer
  • 1,005
  • 3
  • 22
  • 46
  • See if this link helps: http://nui.joshland.org/2010/04/why-wont-wpf-controls-work-with-touch.html – Josh Jan 26 '12 at 18:17

1 Answers1

3

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).

H.B.
  • 166,899
  • 29
  • 327
  • 400