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中不存在!