Accessibility in Xamarin Expander (SfExpander)

The Expander control has built-in AutomationId for inner elements. The AutomationId API allows the automation framework to find and interact with the inner elements of the Expander control. To keep unique AutomationId, these inner element’s AutomationIds are updated based on the Expander control AutomationId.

For example, if we set Expander’s AutomationId as “Automation”, then Automation framework will interact with expander icon of Expander Header as Automation Expander.

View AutomationId Format Example
Expander Icon ControlAutomationId Expander AutomationItem1 Expander

where AutomationItem1 represents Control AutomationId and Expander represents the expander dropdown icon.

The following image denotes the AutomationIds of inner elements.

Automation id for expander

See also

How to access a named Expander inside a XAML DataTemplate in Xamarin.Forms (SfExpander)