If you want to remove the border, you can set the BorderStyle
to UITextBorderStyle.None
.
[assembly: ExportRenderer(typeof(Entry), typeof(MyEntryRenderer))]
namespace App650.iOS
{
public class MyEntryRenderer : EntryRenderer
{
protected override void OnElementChanged(ElementChangedEventArgs<Entry> e)
{
base.OnElementChanged(e);
if (Control != null)
{
// do whatever you want to the UITextField here!
Control.Layer.BorderColor = UIColor.Clear.CGColor;
Control.Layer.BorderWidth = 0;
Control.BorderStyle = UITextBorderStyle.None;
}
}
}
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…