Skip to main content
Logo Appt Light

Accessibility label on Xamarin

An accessibility label helps users of assistive technologies to identify elements on the screen. The accessibility label is conveyed to assistive technologies. Accessibility labels are announced by the screen reader and presented visually by voice control.

In Xamarin Forms, you can set an accessibility label by using the AutomationProperties.Name property.

If another element is used to display the label, the AutomationProperties.LabeledBy property be used to link a label. Unfortunately, LabeledBy only works on Android.

As an alternative, you can link a label by setting IsInAccessibleTree to false and setting AutomationProperties.Name the value of the label.

<Control 
  AutomationProperties.Name="Appt" />

Feedback?

Let us know!