Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IInvokeProvider namespace?

Tags:

c#

wpf

Just for kicks I'm playing around a bit with C# and WPF. I'm going through some examples on sending a button click event to a button programmatically since Button.PerformClick() is no longer present. The example I'm following is using the IInvokeProvider from the System.Windows.Automation.Provider namespace. My copy of VisualStudio 2008 Pro can't seem to find said namespace, or the IInvokeProvider interface ANYWHERE! I've looked in the MSDN Documentation, and this is the correct namesapce, and it says it's available on Windows XP and above. What am I doing wrong?

I started the project as a C# WPF Windows Application using the .NET Framework version 3.5.

like image 381
Grant Limberg Avatar asked Dec 31 '22 03:12

Grant Limberg


1 Answers

Add a reference to UIAutomationProvider.dll... That should allow you to use the System.Windows.Automation.Provider namespace.

like image 55
Jim H. Avatar answered Jan 08 '23 15:01

Jim H.