Forum Xamarin.Forms

How to specify AutomationProperties.NameProperty (or equivalent) for each item in a Picker?

JohnHardmanJohnHardman GBUniversity admin
edited October 2020 in Xamarin.Forms

I have a Picker that allows the user to choose from a collection of pre-defined string values. Those string values are optimised so that they take as little space on the screen as possible. However, when using screen readers (Windows Narrator, VoiceOver, TalkBack), I want the string that is read out to be different to the one displayed on the screen, as the strings optimised to work on small screens are not what you would want to hear when they are read out. Is there any way to specify AutomationProperties.NameProperty (or equivalent) for each item in a Picker?

Best Answer

Answers

  • JohnHardmanJohnHardman GBUniversity admin

    Thanks @Jarvan. That's what I was assuming (although not what I was hoping), that a popup with a ListView might end up being the way to create the effect of an accessible Picker. I thought I'd ask though, as it seems like something many people must encounter when making their apps accessible. I was hoping that the underlying native controls would have support for this scenario, and that XF might expose an API to access that underlying support, even if through an extension method etc.

    Thanks again

Sign In or Register to comment.