【问题标题】:Problem with System.Windows.Automation NamespaceSystem.Windows.Automation 命名空间的问题
【发布时间】:2010-12-27 04:15:44
【问题描述】:

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

问题在于 Visual Studio 和 Expression 无法识别 AutomationElement、TreeScope、TextPattern 和 Red 下划线!!我在 Windows 7 上使用 Visual Studio 2010 Professional 和 Expression 4。在此先感谢 :)

【问题讨论】:

    标签: wpf expression-blend ui-automation


    【解决方案1】:

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

    【讨论】:

    • 它在 UIAutomationClient 程序集中,但它在 System.Windows.Automation.Text 命名空间中。你有合适的命名空间吗?
    • 对不起,我错过了包含 System.Windows.Automation.Text 命名空间谢谢(Y)
    猜你喜欢
    • 2011-02-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-03-26
    • 2016-05-14
    • 1970-01-01
    相关资源
    最近更新 更多