Accessibility role - Xamarin
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.
<controls:CustomFontLabel
xct:SemanticEffect.HeadingLevel="1"
xct:SemanticEffect.Description="Button" />