Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/316.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 如何在给定屏幕坐标的文本框中选择单词?_C#_Windows Phone 7 - Fatal编程技术网

C# 如何在给定屏幕坐标的文本框中选择单词?

C# 如何在给定屏幕坐标的文本框中选择单词?,c#,windows-phone-7,C#,Windows Phone 7,我有一个箭头的图像,它沿着手指。当我举起手指时,我想在箭头末端的文本框中选择一个单词。所以我有一个屏幕坐标 imgArrow_ManipulationCompleted(object sender, ManipulationCompletedEventArgs e) 事件,必须开火 TextBox_Tap(object sender, System.Windows.Input.GestureEventArgs e) 获取文本框中光标的正确位置 问题是如何用给定的坐标触发TextBox\u T

我有一个箭头的图像,它沿着手指。当我举起手指时,我想在箭头末端的文本框中选择一个单词。所以我有一个屏幕坐标

imgArrow_ManipulationCompleted(object sender, ManipulationCompletedEventArgs e)
事件,必须开火

TextBox_Tap(object sender, System.Windows.Input.GestureEventArgs e)
获取文本框中光标的正确位置

问题是如何用给定的坐标触发
TextBox\u Tap()
,因为我自己无法构造
GestureEventArgs e

谢谢大家!

尝试这样做:

input.getWordUnderPosition(x, y);

哈哈。。。这个函数在c中不存在!