Пример #1
0
        public static void UpdateStrokeShape(this ContentPanel nativeView, IBorder border)
        {
            var shape = border.Shape;

            if (shape == null)
            {
                return;
            }

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

            if (strokeDashPattern == null)
            {
                return;
            }

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

            if (stroke == null)
            {
                return;
            }

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

            if (strokeDashPattern == null)
            {
                return;
            }

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

            if (stroke == null)
            {
                return;
            }

            platformView.UpdateStroke(stroke);
        }
Пример #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);
            }
        }
Пример #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);
            }
        }
Пример #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);
        }
Пример #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);
        }
Пример #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);
        }
Пример #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);
        }
Пример #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);
        }