3

我正在实现 WPF 应用程序,我想使用 System.Windows.Automation 命名空间从应用程序中捕获高亮文本。

问题是 Visual Studio 和 Expression 不能识别 AutomationElement、TreeScope、TextPattern 和红色下划线!!我在 Windows 7 上使用 Visual Studio 2010 Professional 和 Expression 4。在此先感谢 :)

4

1 回答 1

4

您需要添加 UIAutomationClient.dll 及其依赖项作为参考。尽管命名空间是可见的,但并非所有类都在同一个程序集中。

于 2010-08-16T20:58:22.473 回答