Hello,
I need to make the Entry border in iOS transparent to match the look and feel of my app.
I tried with a custom renderer like this:
[assembly: ExportRenderer(typeof(Entry), typeof(NoBorderEntryRenderer))]
namespace YouRent.Mobile.iOS.Renderers
{
public class NoBorderEntryRenderer : EntryRenderer
{
protected override void OnElementChanged(ElementChangedEventArgs<Entry> e)
{
base.OnElementChanged(e);
if (Control != null)
{
Control.Layer.BorderColor = Color.Transparent.ToCGColor();
//Control.Layer.BorderColor = UIColor.Clear.CGColor; //same as above?
}
}
}
But when i run the app I still see the default gray border.
Note that I can't completely remove the border because it would make the entry box with square corners (ConerRadius=0), so this won't work for me:
Control.BorderStyle = UITextBorderStyle.None;
Is there any way to make the border transparent in iOS?