当我触摸屏幕时,我在 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)
最佳答案
这是 Microshot.Phone.Controls.Toolkit 的问题。这是该库中的一种错误。当我从 xaml 文件中删除所有手势代码时,上述异常就不会出现。我不知道这背后的真正原因是什么。
关于windows-phone-7 - ArgumentException 未处理(参数不正确),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15492203/