Skip to main content
Logo Appt Light

Accessibility role on Xamarin

An accessibility role helps users of assistive technologies to understand the purpose of elements on the screen. The role button for example, indicates that an action will be performed on activation. The screen reader announces the role of elements as it reads the screen. It is important to assign correct roles to elements to avoid misunderstanding.

Xamarin Forms does not have built-in support for setting an accessibility role.

By using Effects it is possible to implement platform specific behaviour.

The SemanticEffect file inside the Xamarin.CommunityToolkit defines various methods to set accessibility roles.

    xct:SemanticEffect.Description="Button" />


Let us know!