Custom searchBar renderer with Rounded corner : iOS
protected override void OnElementChanged(ElementChangedEventArgs<SearchBar> e)
{
base.OnElementChanged(e);
var searchbar = (UISearchBar)Control;
if (e.NewElement != null)
{
searchbar.Layer.CornerRadius = 20;
searchbar.Layer.BorderWidth =14;
searchbar.Layer.BorderColor = UIColor.FromRGB(240,240,240).CGColor;
}
}
Custom SearchBar renderer : Android ?
I need to do the same as well as i did for ios , customized search bar with rounded corner and other few customizations , for android i didnt get sufficient informations to fix this. Anybody give some instrutions or ideas .
Thanks in advance.