Skip to content

Instantly share code, notes, and snippets.

@Char0394
Created July 3, 2019 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Char0394/65f02fcfcaa0d0d8a70a150fe578c0e3 to your computer and use it in GitHub Desktop.
Save Char0394/65f02fcfcaa0d0d8a70a150fe578c0e3 to your computer and use it in GitHub Desktop.
using Xamarin.Forms;
using Xamarin.Forms.Platform.iOS;
using CreditCardUISample.iOS.Renderers;
using CreditCardUISample.Controls;
[assembly: ExportRenderer(typeof(Xamarin.Forms.Entry), typeof(CustomEntryRenderer), new[] { typeof(CustomVisual) })]
namespace CreditCardUISample.iOS.Renderers
{
public class CustomEntryRenderer: EntryRenderer
{
protected override void OnElementChanged(ElementChangedEventArgs<Entry> e)
{
base.OnElementChanged(e);
if (e.NewElement!=null)
{
Control.BorderStyle = UIKit.UITextBorderStyle.None;
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment