这里是代码 调试器进入handlinput区域,但不会清除touchpanel.isgestureavailable,甚至当我们点击屏幕 感谢乌尔助人为乐提前:)TouchPanel.IsGestureAvailable()始终是假
#region Handle Input
public override void HandleInput(InputState input)
{
Debug.WriteLine("hey stackoverflow\n");
if (TouchPanel.IsGestureAvailable)
{
Debug.WriteLine("check presence\n");
// read the next gesture
var gesture = TouchPanel.ReadGesture();
if (gesture.GestureType == GestureType.Tap | gesture.GestureType == GestureType.Flick | gesture.GestureType == GestureType.Hold)
{
// code sample
}
}
base.HandleInput(input);
}
#endregion
PLZ帮助已经这么做了两天了!!!!!
这已经回答了这个线程: http://stackoverflow.com/questions/4837747/cant-seem-to-get-touch-input-from-touchpanel-in- windows-phone-7 –