Skip to main content
Logo Appt Light

Accessibility focus on Xamarin

Sometimes you need to programmatically move the accessibility focus to a specific element. For example, when you present a modal, the assistive technology should move it's focus to it. Or when moving to a new screen, you might want assistive technologies to focus a specific element.

Xamarin Forms does not have built-in support for changing accessibility focus.

The SemanticExtensions file inside the Xamarin.CommunityToolkit contains the SetSemanticFocus method. It moves the accessibility focus to the given element on the native platform.



Let us know!