Created
July 3, 2019 14:21
-
-
Save Char0394/65f02fcfcaa0d0d8a70a150fe578c0e3 to your computer and use it in GitHub Desktop.
This file contains 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 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