Skip to content

Instantly share code, notes, and snippets.

@Char0394
Created June 28, 2017 03:02
Show Gist options
  • Select an option

  • Save Char0394/993edc3e043abd1f667db616d3a73ff2 to your computer and use it in GitHub Desktop.

Select an option

Save Char0394/993edc3e043abd1f667db616d3a73ff2 to your computer and use it in GitHub Desktop.
using FontSample.Droid.Renderers;
using Xamarin.Forms;
using Xamarin.Forms.Platform.Android;
[assembly: ExportRenderer(typeof(Xamarin.Forms.Entry), typeof(CustomEntryRenderer))]
namespace FontSample.Droid.Renderers
{
public class CustomEntryRenderer : EntryRenderer
{
protected override void OnElementChanged(ElementChangedEventArgs<Xamarin.Forms.Entry> e)
{
base.OnElementChanged(e);
if (Control == null)
return;
Control.Background = null;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment