Created
July 31, 2016 04:52
-
-
Save twolfprogrammer/7829a87f705e4cf0974c62652655931e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using Xamarin.Forms; | |
| using Xamarin.Forms.Platform.iOS; | |
| [assembly: ExportRenderer(typeof(Entry), typeof(MyCoolApp.iOS.CustomEntryRenderer))] | |
| namespace MyCoolApp.iOS { | |
| public class CustomEntryRenderer : EntryRenderer { | |
| protected override void OnElementChanged(ElementChangedEventArgs<Entry> e) { | |
| base.OnElementChanged(e); | |
| if (this.Control != null) { | |
| this.Control.AutocapitalizationType = UIKit.UITextAutocapitalizationType.None; | |
| this.Control.AutocorrectionType = UIKit.UITextAutocorrectionType.No; | |
| } | |
| } | |
| } | |
| } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment