We are developing a WPF 4.0 application for internal use.
On some clients, we are experiencing huge performance issues due to UI automation
(these clients have software installed like tablet service pen, touch, ..).
This is a known issue for WPF 4.0, see for instance:
We've been able to reproduce this issue on a machine with very limited specs.
Opening a WPF window on this machine takes:
- 00:00:02 - without any UI automation triggering software installed
- 00:01:41 - with UI automation triggering software installed (RoboForm for this test)
- 00:00:09 - with UI automation triggering software installed, and hotfix KB2484841 applied
As you can see, installing hotfix KB2484841 is a huge improvement, but still not as fast as running without ui Automation triggering software installed.
Furthermore, we do not have much control over which software to install at the clients, so it's hard to roll out this fix for all clients.
Therefore, is it possible to "turn off" UI Automation for an entire WPF application? I know it can be done on a per-UserControl basis, but is it possible for the app as a whole?
I've tried the code provided in this post, but without success.
Thanks for your time,
Koen