ArgumentException未处理(参数不正确)

时间:2013-03-19 05:38:34

标签: windows-phone-7 c#-4.0 c#-3.0 unhandled-exception

当我触摸屏幕时,我在wp7应用程序中遇到异常 ArgumentException未处理(参数不正确)。我已经把所有的断点,但没有得到为什么这个异常即将来临?接下来我正在把这个异常的堆栈跟踪。请帮我?

at MS.Internal.XcpImports.CheckHResult(UInt32 hr)
   at MS.Internal.XcpImports.UIElement_HitTestPoint(UIElement element, Point ptHit)
   at System.Windows.Media.VisualTreeHelper.FindElementsInHostCoordinates(Point intersectingPoint, UIElement subtree)
   at Microsoft.Phone.Controls.GestureListener.TouchStart()
   at Microsoft.Phone.Controls.GestureListener.OnTouchFrameReported(Object sender, TouchFrameEventArgs e)
   at System.Windows.Input.Touch.OnTouch(Object sender, TouchFrameEventArgs e)
   at MS.Internal.JoltHelper.RaiseEvent(IntPtr target, UInt32 eventId, IntPtr coreEventArgs, UInt32 eventArgsTypeIndex)

1 个答案:

答案 0 :(得分:4)

这是 Microshoft.Phone.Controls.Toolkit 的问题。这是这个库中的一种错误。当我从xaml文件中删除所有手势代码时,上述异常不会到来。我不知道背后的真正原因是什么。

相关问题