public static void InitializeFrom(this Border nativeControl, RoundedBoxView formsControl) { if (nativeControl == null || formsControl == null) { return; } nativeControl.Height = formsControl.HeightRequest; nativeControl.Width = formsControl.WidthRequest; nativeControl.UpdateCornerRadius(formsControl.CornerRadius); nativeControl.UpdateBorderColor(formsControl.BorderColor); var rectangle = new Windows.UI.Xaml.Shapes.Rectangle(); rectangle.InitializeFrom(formsControl); nativeControl.Child = rectangle; }