示例#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);
        }