Exemplo n.º 1
0
        public static void MapBackground(IShapeViewHandler handler, IShapeView shapeView)
        {
            handler.UpdateValue(nameof(IViewHandler.ContainerView));
            handler.ToPlatform().UpdateBackground(shapeView);

            handler.PlatformView?.InvalidateShape(shapeView);
        }
Exemplo n.º 2
0
 public static void MapShape(IShapeViewHandler handler, IShapeView shapeView)
 {
     handler.PlatformView?.UpdateShape(shapeView);
     if (handler.ContainerView is WrapperView wrapperView)
     {
         wrapperView.UpdateShape(shapeView.Shape);
     }
 }
Exemplo n.º 3
0
        public static void MapFillRule(IShapeViewHandler handler, Polygon polygon)
        {
            IDrawable drawable = handler.PlatformView?.Drawable;

            if (drawable == null)
            {
                return;
            }

            if (drawable is ShapeDrawable shapeDrawable)
            {
                shapeDrawable.UpdateWindingMode(polygon.FillRule == FillRule.EvenOdd ? WindingMode.EvenOdd : WindingMode.NonZero);
            }

            handler.PlatformView?.InvalidateShape(polygon);
        }
Exemplo n.º 4
0
        public static void MapFillRule(IShapeViewHandler handler, Polyline polyline)
        {
            IDrawable drawable = handler.PlatformView?.Drawable;

            if (drawable == null)
            {
                return;
            }

            if (drawable is ShapeDrawable shapeDrawable)
            {
                shapeDrawable.WindingMode = polyline.FillRule == FillRule.EvenOdd ? Graphics.WindingMode.EvenOdd : Graphics.WindingMode.NonZero;
            }

            handler.PlatformView?.InvalidateShape(polyline);
        }
Exemplo n.º 5
0
        public static void MapRenderTransform(IShapeViewHandler handler, Path path)
        {
            IDrawable drawable = handler.PlatformView?.Drawable;

            if (drawable == null)
            {
                return;
            }

            if (drawable is ShapeDrawable shapeDrawable)
            {
                Matrix?matrix = path.RenderTransform?.Value;

                if (matrix != null)
                {
                    shapeDrawable.UpdateRenderTransform(matrix.Value.ToMatrix3X2());
                }
            }

            handler.PlatformView?.InvalidateShape(path);
        }
Exemplo n.º 6
0
 public static void MapData(IShapeViewHandler handler, Path path)
 {
     handler.PlatformView?.InvalidateShape(path);
 }
Exemplo n.º 7
0
 public static void MapShape(IShapeViewHandler handler, Path path)
 {
 }
Exemplo n.º 8
0
 public static void MapPoints(IShapeViewHandler handler, Polyline polyline)
 {
     handler.PlatformView?.InvalidateShape(polyline);
 }
 public static void MapCornerRadius(IShapeViewHandler handler, RoundRectangle roundRectangle)
 {
 }
Exemplo n.º 10
0
 public static void MapStrokeMiterLimit(IShapeViewHandler handler, IShapeView shapeView)
 {
     handler.PlatformView?.InvalidateShape(shapeView);
 }
Exemplo n.º 11
0
 public static void MapRadiusX(IShapeViewHandler handler, Rectangle rectangle)
 {
     handler.PlatformView?.InvalidateShape(rectangle);
 }
Exemplo n.º 12
0
 public static void MapStrokeLineJoin(IShapeViewHandler handler, IShapeView shapeView)
 {
 }
Exemplo n.º 13
0
 public static void MapStrokeDashOffset(IShapeViewHandler handler, IShapeView shapeView)
 {
     handler.PlatformView?.InvalidateShape(shapeView);
 }
Exemplo n.º 14
0
 public static void MapStrokeDashPattern(IShapeViewHandler handler, IShapeView shapeView)
 {
 }
Exemplo n.º 15
0
 public static void MapStrokeDashOffset(IShapeViewHandler handler, IShapeView shapeView)
 {
 }
Exemplo n.º 16
0
 public static void MapStrokeThickness(IShapeViewHandler handler, IShapeView shapeView)
 {
 }
Exemplo n.º 17
0
 public static void MapFill(IShapeViewHandler handler, IShapeView shapeView)
 {
 }
Exemplo n.º 18
0
 public static void MapAspect(IShapeViewHandler handler, IShapeView shapeView)
 {
 }
Exemplo n.º 19
0
 public static void MapFill(IShapeViewHandler handler, IShapeView shapeView)
 {
     handler.PlatformView?.InvalidateShape(shapeView);
 }
Exemplo n.º 20
0
 public static void MapStrokeMiterLimit(IShapeViewHandler handler, IShapeView shapeView)
 {
 }
Exemplo n.º 21
0
 public static void MapStrokeThickness(IShapeViewHandler handler, IShapeView shapeView)
 {
     handler.PlatformView?.InvalidateShape(shapeView);
 }
Exemplo n.º 22
0
 public static void MapBackground(IShapeViewHandler handler, IShapeView shapeView)
 {
 }
Exemplo n.º 23
0
 public static void MapStrokeLineJoin(IShapeViewHandler handler, IShapeView shapeView)
 {
     handler.PlatformView?.InvalidateShape(shapeView);
 }
Exemplo n.º 24
0
 public static void MapRenderTransform(IShapeViewHandler handler, Path path)
 {
 }
Exemplo n.º 25
0
 public static void MapX1(IShapeViewHandler handler, Line line)
 {
     handler.PlatformView?.InvalidateShape(line);
 }
Exemplo n.º 26
0
 public static void MapRadiusX(IShapeViewHandler handler, Rectangle rectangle)
 {
 }
Exemplo n.º 27
0
 public static void MapShape(IShapeViewHandler handler, Polyline polyline)
 {
     handler.PlatformView?.UpdateShape(polyline);
 }
Exemplo n.º 28
0
 public static void MapRenderTransform(IShapeViewHandler handler, Path path)
 {
     handler.PlatformView?.InvalidateShape(path);
 }
Exemplo n.º 29
0
 public static void MapShape(IShapeViewHandler handler, IShapeView shapeView)
 {
     handler.PlatformView?.UpdateShape(shapeView);
 }
Exemplo n.º 30
0
 public static void MapX1(IShapeViewHandler handler, Line line)
 {
 }