private void UpdateBorder()
 {
     borderColor = XFArchitecture.Effects.BorderEffect.GetBorderColor(Element).ToAndroid();
     if (Control != null)
     {
         Control.AddBorderWithColor(borderRadius, borderColor, borderWidth);
     }
     else
     {
         Container.AddBorderWithColor(borderRadius, borderColor, borderWidth);
     }
 }
 private void UpdateBorder()
 {
     borderColor = XFArchitecture.Effects.BorderEffect.GetBorderColor(Element).ToUIColor();
     if (Control != null)
     {
         if (Control is UITextField textField && textField.BorderStyle != UITextBorderStyle.None)
         {
             textField.BorderStyle = UITextBorderStyle.None;
         }
         Control.AddBorderWithColor(borderRadius, borderColor, borderWidth);
     }
     else
     {
         Container.AddBorderWithColor(borderRadius, borderColor, borderWidth);
     }
 }