我想绘制一条路径,其中用户触摸图像放置在该位置,并假设用户移动手指图像放置在这些位置。 通常在绘图应用程序中用户在触摸时绘制一条线但我想用图像绘制触摸事件的地方请给我任何建议,如果有人在Windows手机开发中有这样的问题的经验。 非常感谢
答案 0 :(得分:0)
我发现了一个比我刚发布的更好的例子。
直接离开MS视线
TouchCollection touchCollection = TouchPanel.GetState();
foreach (TouchLocation tl in touchCollection)
{
if ((tl.State == TouchLocationState.Pressed)
|| (tl.State == TouchLocationState.Moved))
{
//Here is where you add your logic to add images
}
}