Xamarin iOS Designer - Accessibility fields

Does Xamarin.iOS integrated Designer (preferably Visual Studio, but I could use Xamarin Studio) support defining the AccessibilityIdentifier and/or AccessibilityLabel? I don't want to use XCode's Interface Builder JUST for this...

Am I missing something? I'm using the latest stable version (Xamarin 3.11.1537.0 and Xamarin.iOS 9.0.1.0)

Upvotes: 0

Views: 229

Answers (2)

Finally this has been added to the Alpha Channel! Now "All accessibility properties are supported."

http://developer.xamarin.com/releases/studio/xamarin.studio_5.10/xamarin.studio_5.10/

Upvotes: 1

SushiHangover
SushiHangover

Reputation: 74209

You can set the AccessibilityIdentifier programatically, but I personally do not know of it being exposed anywhere via Xam's designer.

i.e.

Setting the Accessibility ID Programatically

The AccessibilityIdentifier is bound by modern versions of Xamarin.iOS. In your C# code you may set the value like so:

view.AccessibilityIdentifier = "CreditCardTextField";

The ViewDidLoad event is a logical place to set the AccessibilityIdentifier property.

Upvotes: 1

Related Questions