I want to build WPF multi-touch drawing app that user can use many fingers to draw strokes.
So, I tried to use inkcanvas but it can draw only single stroke.
using System.Windows.Ink;
How do I use inkcanvas to draw multi-stroke?
Thanks,
Hong Limp
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you have Windows 7 and are using WPF4, you should be able to use multi-touch if your input device supports it. If your input device does not support multi-touch, you can simulate it with two mice using the HID device from Multi-Touch Vista by following these instructions:
As the article demonstrates, you can test your multi-touch input driver on Windows 7 using the classic Paint application.
Update:
Alas, I can confirm that an
InkCanvasin WPF4 does not support multiple strokes, only multi-touch gestures. However, I did find and test a sample that provides a similar effect:Download the sample and use the TouchDrawing project.