# UI Automation Support

With the **Q1 2025** version of our controls, RadRepeatButton supports UI Automation. The current implementation of UI Automation for RadRepeatButton is similar to the MS WinForms Button Control implementation with some extended functionality. The main goal of this implementation is to ensure compliance with accessibility standards and to provide a common practice for automated testing.

This functionality is enabled by default. To disable it, you can set the **EnableUIAutomation** property to false.

```C#

this.radRepeatButtonButton1.EnableUIAutomation = false;

```

```VB.NET

Me.RadRepeatButtonButton1.EnableUIAutomation = False

```

![button-ui-automation](https://www.telerik.com/products/winforms/documentation/assets/f23e07903e5373a90978c4ed6e32da17/button-ui-automation001.png)

## Relevant Properties

The table below outlines the **UI Automation** properties most important for understanding and interacting with RadRepeatButton control.

#### RadRepeatButton

* AutomationElementIdentifiers.AutomationIdProperty.Id
* AutomationElementIdentifiers.AcceleratorKeyProperty.Id
* AutomationElementIdentifiers.AccessKeyProperty.Id
* AutomationElementIdentifiers.BoundingRectangleProperty.Id
* AutomationElementIdentifiers.ControlTypeProperty.Id
* AutomationElementIdentifiers.LocalizedControlTypeProperty.Id => "button"
* AutomationElementIdentifiers.HelpTextProperty.Id
* AutomationElementIdentifiers.IsContentElementProperty.Id
* AutomationElementIdentifiers.IsEnabledProperty.Id
* AutomationElementIdentifiers.IsControlElementProperty.Id
* AutomationElementIdentifiers.IsKeyboardFocusableProperty.Id
* AutomationElementIdentifiers.NameProperty.Id

## Supported Control Patterns

The following section outlines the supported automation patterns for the **RadRepeatButton** control and its constituent elements.

* [Invoke Pattern](https://learn.microsoft.com/en-us/dotnet/api/system.windows.automation.provider.iinvokeprovider?view=windowsdesktop-9.0)

The RadRepeatButton control raises the following events

* **OnClick**: Raises the UIA [InvokePatternIdentifiers.InvokedEvent Field](https://learn.microsoft.com/en-us/dotnet/api/system.windows.automation.invokepatternidentifiers.invokedevent?view=windowsdesktop-9.0#system-windows-automation-invokepatternidentifiers-invokedevent)

* **OnGotFocus**: Raises the [UIA AutomationElementIdentifiers.AutomationFocusChangedEvent Field](https://learn.microsoft.com/en-us/dotnet/api/system.windows.automation.automationelementidentifiers.automationfocuschangedevent?view=windowsdesktop-9.0#system-windows-automation-automationelementidentifiers-automationfocuschangedevent)

* **OnEnabledChanged**: Raises the [UIA AutomationElementIdentifiers.IsEnabledProperty Field](https://learn.microsoft.com/en-us/dotnet/api/system.windows.automation.automationelementidentifiers.isenabledproperty?view=windowsdesktop-9.0#system-windows-automation-automationelementidentifiers-isenabledproperty)
