Edit this page

UI Automation Support

Telerik UI for Silverlight 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 Silverlight 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;

  • Advanced - will create the full AutomationPeer implementation for Telerik UI controls. 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;
        this.InitializeComponent();
    }
}