Example #1
0
        public static void UpdateStrokeShape(this ContentPanel nativeView, IBorder border)
        {
            var shape = border.Shape;

            if (shape == null)
            {
                return;
            }

            nativeView.UpdateBorderShape(shape);
        }
Example #2
0
        public static void UpdateStrokeDashPattern(this ContentPanel nativeView, IBorder border)
        {
            var strokeDashPattern = border.StrokeDashPattern;

            if (strokeDashPattern == null)
            {
                return;
            }

            nativeView.UpdateStrokeDashPattern(strokeDashPattern);
        }
Example #3
0
        public static void UpdateStroke(this ContentPanel nativeView, IBorder border)
        {
            var stroke = border.Stroke;

            if (stroke == null)
            {
                return;
            }

            nativeView.UpdateStroke(stroke);
        }
Example #4
0
        public static void UpdateStrokeDashPattern(this ContentPanel platformView, IBorderStroke border)
        {
            var strokeDashPattern = border.StrokeDashPattern;

            if (strokeDashPattern == null)
            {
                return;
            }

            platformView.UpdateStrokeDashPattern(strokeDashPattern);
        }
Example #5
0
        public static void UpdateStroke(this ContentPanel platformView, IBorderStroke border)
        {
            var stroke = border.Stroke;

            if (stroke == null)
            {
                return;
            }

            platformView.UpdateStroke(stroke);
        }
Example #6
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);
            }
        }
Example #7
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);
            }
        }
Example #8
0
        public static void UpdateStrokeLineJoin(this ContentPanel nativeView, IBorder border)
        {
            bool hasBorder = border.Shape != null && border.Stroke != null;

            if (!hasBorder)
            {
                return;
            }

            var strokeLineJoin = border.StrokeLineJoin;

            nativeView.UpdateStrokeLineJoin(strokeLineJoin);
        }
Example #9
0
        public static void UpdateStrokeMiterLimit(this ContentPanel nativeView, IBorder border)
        {
            bool hasBorder = border.Shape != null && border.Stroke != null;

            if (!hasBorder)
            {
                return;
            }

            var strokeMiterLimit = border.StrokeMiterLimit;

            nativeView.UpdateStrokeMiterLimit(strokeMiterLimit);
        }
Example #10
0
        public static void UpdateStrokeDashOffset(this ContentPanel nativeView, IBorder border)
        {
            bool hasBorder = border.Shape != null && border.Stroke != null;

            if (!hasBorder)
            {
                return;
            }

            var strokeDashOffset = border.StrokeDashOffset;

            nativeView.UpdateBorderDashOffset(strokeDashOffset);
        }
Example #11
0
        public static void UpdateStrokeThickness(this ContentPanel nativeView, IBorder border)
        {
            bool hasBorder = border.Shape != null && border.Stroke != null;

            if (!hasBorder)
            {
                return;
            }

            var strokeThickness = border.StrokeThickness;

            nativeView.UpdateStrokeThickness(strokeThickness);
        }
Example #12
0
        public static void UpdateStrokeLineCap(this ContentPanel platformView, IBorderStroke border)
        {
            bool hasBorder = border.Shape != null && border.Stroke != null;

            if (!hasBorder)
            {
                return;
            }

            var strokeLineCap = border.StrokeLineCap;

            platformView.UpdateStrokeLineCap(strokeLineCap);
        }