Skip to content

Instantly share code, notes, and snippets.

@Char0394
Created July 3, 2019 14:21
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Char0394/e5c513552fac30872f9624276b563afc to your computer and use it in GitHub Desktop.
Save Char0394/e5c513552fac30872f9624276b563afc to your computer and use it in GitHub Desktop.
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