Reputation: 15863
I am implementing WPF Application and i want to use System.Windows.Automation Namespace to capture highlgihted text from applications.
The Problem is that Visual Studio and Expression don't identfy AutomationElement, TreeScope, TextPattern and Red underlined it !! i am using Visual Studio 2010 Professional and Expression 4 on Windows 7. Thanks in advance :)
Upvotes: 3
Views: 890
Reputation: 1384
You need to add UIAutomationClient.dll and it's dependencies as references. Even though the namespace is visable, not all of the classes are in the same Assembly.
Upvotes: 4