Articles in this section

How to set Automation Id for WPF Ribbon control?

You can define the automation id for tab headers in WPF Ribbon control by using AutomationId attached property of AutomationProperties.

 

The AutomationId property used to define the unique string and it helps to identify the specified element in Automation testing process and perform recorded action.

                                                                  

For example, you are setting AutomationId for RibbonTab. The following code demonstrates the same.

 

XAML

<!-- AutomationId defined for RibbonTab -->
<syncfusion:RibbonTab Caption="Home" AutomationProperties.AutomationId="HomeTab"/>
<syncfusion:RibbonTab Caption="Send / Receive" AutomationProperties.AutomationId="SendReceiveTab"/>
<syncfusion:RibbonTab Caption="Folder" AutomationProperties.AutomationId="FolderTab"/>

 

Screenshot

Set AutomationId to WPF Ribbon control

 

View sample in GitHub

 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Access denied
Access denied