2 posts, 1 answers
  1. Maurício
    Maurício avatar
    42 posts
    Member since:
    Jan 2011

    Posted 18 Feb 2016 Link to this post

    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!!


  2. Answer
    Dinko avatar
    440 posts

    Posted 23 Feb 2016 Link to this post

    Hello Maurício,

    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.

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top