windows-phone-7 - ArgumentException 未处理(参数不正确)

标签 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)

最佳答案

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

关于windows-phone-7 - ArgumentException 未处理(参数不正确),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15492203/

相关文章:

c# - C# 中是否存在可使局部变量在多次调用中保持不变的关键字?

asp.net - 如何动态创建一个asp按钮并向其添加事件

c# - 队列竞争条件

visual-studio - 在 lightswitch 应用程序中保存屏幕更改历史记录

windows-phone-7 - 将图像保存到隔离存储中

windows - 在按钮 Isenabled =false 上,我看不到按钮背景图像?

c# - 如何取消异步调用?

c# - 扩展方法需要将类声明为静态

c# - 我无法获得 UIElement 的 ActualSize

c# - 我如何更改/设置 Windows Phone 8 中的默认字体系列