Hello
What are the possible drawbacks of disabling the AutomationManager?
AutomationManager.AutomationMode = AutomationMode.Disabled;
It drastically improved shape manipulation. It was extremelly slow when resizing and creating shapes before changing the AutomationMode.
My question is, what is this for? What am I losing by disabling it? I've read the documentation but didn't understand it well.
Thank you!!
4 Answers, 1 is accepted
Thank you for contacting Telerik Support.
Let me get straight to your questions.
- What is this for? - The Microsoft UI Automation (UIA) framework provides programmatic access to most user interface elements on Win32, WinForms, and WPF applications. It is primarily used for the purposes of automated UI testing and accessibility assistance. The UIA framework exposes every UI component as an AutomationElement object. These objects comprise a tree structure wherein the Windows desktop is the root element. Each AutomationElement exposes a set of control patterns which define the way clients can interact them. For example, if the element defines a ValuePattern, a client can get this pattern and store it in a ValuePattern object, and use that objects getValue and setValue methods to access the UI element's value (the text in a textbox for instance).
- What am I losing by disabling it? - By default, our controls have UI automation peers turned on and their code is invoked multiple times on a touch device. By disabling it, you can't use Code UI for testing. Also, you won't be able use the MS Narrator tool or any other end tool that uses automation peers.
Regards,
Dinko
Telerik
FYI:
Disabling AutomationManager like this:
AutomationManager.AutomationMode = AutomationMode.Disabled;
Disable KeyTipServcie in RibbonBar.
Hello Alexander,
I have double-checked this behavior but wasn't able to reproduce this. Is it possible to isolate this behavior in a standalone project which demonstrates this? This way I can take a look and check if I have missed something or the reason behind this comes from somewhere else.
Regards,
Dinko
Progress Telerik
Hi Dinko,
thanks for reply.
i can't attach my example project.
Regards,
Alexander