Created
January 19, 2020 17:02
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 XamarinFormsEditor.Controls; | |
using XamarinFormsEditor.Droid.Helpers; | |
using Xamarin.Forms.Platform.Android; | |
using Android.Graphics.Drawables; | |
[assembly: ExportRenderer(typeof(XEditor), typeof(XEditorRenderer))] | |
namespace XamarinFormsEditor.Droid.Helpers { | |
public class XEditorRenderer: EditorRenderer { | |
protected override void OnElementChanged(ElementChangedEventArgs < Editor > 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