【发布时间】:2011-12-16 13:57:29
【问题描述】:
我正在开发一个 Silverlight 应用程序。在这个我想模拟接触点。有什么方法可以创建具有更改位置的 TouchPoint 或在创建后更改位置?我试过这个(来自http://mail.java2s.com/Open-Source/CSharp/Testing/gesturetoolkit/TouchToolKit/Framework/Utility/TouchPointHelper.cs.htm):
TouchPoint touch = new TouchPoint();
touch.SetValue("Position", new point(x,y));
这不适用于错误:“错误 197 参数 1:无法从 'string' 转换为 'System.Windows.DependencyProperty'” 基本上我正在尝试生成具有不同位置的接触点。任何帮助表示赞赏。
【问题讨论】:
标签: c# silverlight dependency-properties