private void CreateCircle(Xamarin.Forms.Color borderColor = new Color(), double borderWidth = 3.0) { try { double min = Math.Min(Element.Width, Element.Height); Control.Layer.CornerRadius = (float)(min / 2.0); Control.Layer.MasksToBounds = false; Control.Layer.BorderColor = borderColor.ToCGColor(); Control.Layer.BorderWidth = (float)borderWidth; Control.ClipsToBounds = true; } catch (Exception) { //Debug.WriteLine ("Unable to create circle image: " + ex); } }