public static void UpdateBackground(this ContentPanel platformView, IBorderStroke border) { var hasBorder = border.Shape != null && border.Stroke != null; if (hasBorder) { platformView?.UpdateBorderBackground(border); } else if (border is IView v) { platformView?.UpdatePlatformViewBackground(v); } }
public static void UpdateBackground(this ContentPanel nativeView, IBorder border) { var hasBorder = border.Shape != null && border.Stroke != null; if (hasBorder) { nativeView?.UpdateBorderBackground(border); } else { nativeView?.UpdateNativeViewBackground(border); } }