Ejemplo n.º 1
0
        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);
            }
        }
Ejemplo n.º 2
0
        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);
            }
        }