Created
July 3, 2019 14:21
-
-
Save Char0394/e5c513552fac30872f9624276b563afc 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 CreditCardUISample.Controls; | |
using CreditCardUISample.Droid.Renderers; | |
using Xamarin.Forms.Platform.Android; | |
using Android.Content; | |
[assembly: ExportRenderer(typeof(Xamarin.Forms.Entry), typeof(CustomEntryRenderer), new[] { typeof(CustomVisual) })] | |
namespace CreditCardUISample.Droid.Renderers | |
{ | |
public class CustomEntryRenderer : EntryRenderer | |
{ | |
public CustomEntryRenderer(Context context) : base(context) | |
{ | |
} | |
protected override void OnElementChanged(ElementChangedEventArgs<Entry> e) | |
{ | |
base.OnElementChanged(e); | |
if (e.NewElement != null) | |
{ | |
Control.SetBackground(null); | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment