Created
November 10, 2020 00:27
-
-
Save EduardoReisDev/6f96a6755df533bba0cd715c270b5675 to your computer and use it in GitHub Desktop.
Entry personalizado Xamarin.
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 MyGarden.Controls; | |
using XamarinBorderlessEntry.Droid.ControlHelpers; | |
using Xamarin.Forms.Platform.Android; | |
using Android.Graphics.Drawables; | |
[assembly: ExportRenderer(typeof(XEntry), typeof(XEntryRenderer))] | |
namespace XamarinBorderlessEntry.Droid.ControlHelpers | |
{ | |
public class XEntryRenderer : EntryRenderer | |
{ | |
protected override void OnElementChanged(ElementChangedEventArgs<Entry> e) | |
{ | |
base.OnElementChanged(e); | |
if (Control != null) | |
{ | |
Control.Background = new ColorDrawable(Android.Graphics.Color.Transparent); | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment