UI Automation Support

Telerik UI for WPF provides built-in support for Microsoft UI Automation – the accessibility framework for Microsoft Windows. UI Automation support is implemented through a tree of peer classes that derive from FrameworkElementAutomationPeer. We follow the convention about naming the peer classes – they begin with the control class name and end with “AutomationPeer”.

For detailed information on the UI Automation check the UI Automation Fundamentals section on MSDN.

AutomationMode property

With Q2 2014 SP release of Telerik UI for WPF you will have the option to turn off the generating of the automation peers through the new global AutomationMode property of the AutomationManager.

Creating the automation peers can be turned off only for the whole application, not for separate controls.

AutomationMode property is of enum type and accepts the following values:

  • Disabled – this option will disable creating of automation peers of Telerik controls;
  • FrameworkOnly – this option will include only the base methods of AutomationPeers of MS classes;

  • Basic – will create the full AutomationPeer implementation for Telerik UI controls. It supports the most basic Coded UI tests;

  • Advanced - required for Coded UI tests with Level 2 and Level 3. This is the default value.

The next code snippet shows how the AutomationMode property can be set:

using Telerik.Windows.Automation.Peers;  
public partial class App : Application 
    public App() 
        AutomationManager.AutomationMode = AutomationMode.Disabled; 

See Also

In this article
Not finding the help you need? Improve this article