Hello,
Welcome to Microsoft Q&A!
BorderStyle = none
is the only solution to remove the border , because in my test it seems to ignore BorderColor
and BorderWidth
property if we do nothing on BorderStyle(the default value is RoundedRect)
.
If you want to both remain the ConerRadius and remove the border , you can set ConerRadius
manually .
protected override void OnElementChanged(ElementChangedEventArgs<Entry> e)
{
base.OnElementChanged(e);
if (Control != null)
{
Control.BorderStyle = UITextBorderStyle.None;
Control.Layer.CornerRadius = 5;
Control.Layer.MasksToBounds = true;
}
}
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.