c# - 找不到 System.Windows.Point

标签 c# windows winforms ui-automation point

我正在使用 UIAutomation用方法

System.Windows.Automation.AutomationElement.FromPoint(System.Windows.Point)

通过鼠标光标获取元素,但我找不到类型 System.Windows.Point .我查了对象库,它仍然看不见。

我正在使用 .Net Framework 4.5。

最佳答案

System.Windows.Point is part of WPF, if you're trying to do this in a WinForms app, it's not supported – Peter Ritchie Oct 4 '14 at 0:10

关于c# - 找不到 System.Windows.Point,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26188346/

相关文章:

c - 二进制模式下的 Windows 管道

c# - 如何修复此 Esc 键错误?

VB.NET在继续读取/写入之前检查文件是否打开?

c# - Unity如何让GameObject Speed获得速度

python - 通过多个内核在 Jupyter Notebook 上运行多个 Python 版本(2.x、3.y、3.z)

c# - EF4.0 中的延迟加载正在卡住 UI

python - 如何在 Windows 上安装 python-levenshtein?

c# - 使用已经运行的应用程序实例

c# - 如何在 netcoreapp1.1 中使用 TextWriter.Synchronized

c# - 尝试使用父属性作为子集合表达式中的参数; LinqKit 抛出 "Unable to cast MethodCallExpressionN to LambdaExpression"