Accessibility in Xamarin Rating (SfRating)
12 Aug 20221 minute to read
AutomationId
The SfRating
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 SfRating
control. To keep unique AutomationId, these inner elements’ AutomationIds are updated based on the control’s AutomationId
.
For example, if you set SfRating’s AutomationId
as “Feedback” and you select the fourth item, then the automation framework will interact with the SfRating as “Feedback Rating 4”. When the rating is added as custom view, the Automation framework will interact with the element’s AutomationId
.
NOTE
AutomationId support works only when the precision mode of
SfRating
is set asStandard
.