Currently when i set an AutomationID on my RibbonTabItem, the same ID is used for both the RibbonTab content and the RibbonTabHeader.
So i was wondering if there is a way to specify the Header to have a different ID?
Currently when i set an AutomationID on my RibbonTabItem, the same ID is used for both the RibbonTab content and the RibbonTabHeader.
So i was wondering if there is a way to specify the Header to have a different ID?
Hi Eric,
The AutomationId is passed from the RibbonTabItem you define over to the RibbonTabHeader that is actually in the UIA peer tree. The RibbonTabItem itself shouldn't be appearing in the UIA peer tree though. The hierarchy is like this:
- ribbon
- ribbon tabs
- ribbon tab 'Home' (this is the RibbonTabHeader)
- ribbon group 'Clipboard'
Could you clarify in more detail what you are doing where the duplicate AutomationId is causing issues? We'd like to better understand the scenario. Thank you!
Please log in to a validated account to post comments.