We are running a custom process injection into a WPF Process, and enable named pipe between process to communicate. I want to disable the mainwindows until I complete my injection process.
I am using UIAutomation Libraries to check wpf window properties. AutomationElement
gives a method to check property value via GetCurrentValue
of the property.
What is the equivalent of the SetCurrentValue
method so that I can set the IsEnabledProperty
?