MobileEntryRenderer.cs 645 B

123456789101112131415161718192021222324
  1. using UIKit;
  2. using Xamarin.Forms;
  3. using Xamarin.Forms.Platform.iOS;
  4. using InABox.Mobile;
  5. using InABox.Mobile.iOS;
  6. [assembly: ExportRenderer(typeof(MobileEntry), typeof(MobileEntryRenderer))]
  7. namespace InABox.Mobile.iOS
  8. {
  9. class MobileEntryRenderer : EntryRenderer
  10. {
  11. protected override void OnElementChanged(ElementChangedEventArgs<Entry> e)
  12. {
  13. base.OnElementChanged(e);
  14. if (Control != null)
  15. {
  16. Control.BorderStyle = UITextBorderStyle.None;
  17. Control.Layer.CornerRadius = 5;
  18. Control.TextColor = UIColor.Black;
  19. }
  20. }
  21. }
  22. }