Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 89864

Is it possible to switch off autocorrect on iOS custom forms elements

$
0
0

I have been asked to disable autocorrect on an iOS form view and can't work out how to do it. The XAML looks like this:

< local:ValidatedEntry x:Name="FirstName"
Header="First name"
InvalidText="The text you have entered is too long or not provided"
HeaderFont="{x:Static local:StyleConstants.FormFieldTitleFont}"
Text=""
ValidMode="MinMax" Min="1" Max="30" CapitaliseText="true" >

I tried setting the autocorrectionType property to UITextAutocorrectionType.No, but, presumably because the ValidatedEntry class inherits from ContentView, this doesn't work. I can't find much information on this on line - does anyone know how to switch off autocorrect on custom elements?

Thanks

Denise


Viewing all articles
Browse latest Browse all 89864

Trending Articles