public static void MapBackground(IShapeViewHandler handler, IShapeView shapeView) { handler.UpdateValue(nameof(IViewHandler.ContainerView)); handler.ToPlatform().UpdateBackground(shapeView); handler.PlatformView?.InvalidateShape(shapeView); }
public static void MapShape(IShapeViewHandler handler, IShapeView shapeView) { handler.PlatformView?.UpdateShape(shapeView); if (handler.ContainerView is WrapperView wrapperView) { wrapperView.UpdateShape(shapeView.Shape); } }
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); }
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); }
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); }
public static void MapData(IShapeViewHandler handler, Path path) { handler.PlatformView?.InvalidateShape(path); }
public static void MapShape(IShapeViewHandler handler, Path path) { }
public static void MapPoints(IShapeViewHandler handler, Polyline polyline) { handler.PlatformView?.InvalidateShape(polyline); }
public static void MapCornerRadius(IShapeViewHandler handler, RoundRectangle roundRectangle) { }
public static void MapStrokeMiterLimit(IShapeViewHandler handler, IShapeView shapeView) { handler.PlatformView?.InvalidateShape(shapeView); }
public static void MapRadiusX(IShapeViewHandler handler, Rectangle rectangle) { handler.PlatformView?.InvalidateShape(rectangle); }
public static void MapStrokeLineJoin(IShapeViewHandler handler, IShapeView shapeView) { }
public static void MapStrokeDashOffset(IShapeViewHandler handler, IShapeView shapeView) { handler.PlatformView?.InvalidateShape(shapeView); }
public static void MapStrokeDashPattern(IShapeViewHandler handler, IShapeView shapeView) { }
public static void MapStrokeDashOffset(IShapeViewHandler handler, IShapeView shapeView) { }
public static void MapStrokeThickness(IShapeViewHandler handler, IShapeView shapeView) { }
public static void MapFill(IShapeViewHandler handler, IShapeView shapeView) { }
public static void MapAspect(IShapeViewHandler handler, IShapeView shapeView) { }
public static void MapFill(IShapeViewHandler handler, IShapeView shapeView) { handler.PlatformView?.InvalidateShape(shapeView); }
public static void MapStrokeMiterLimit(IShapeViewHandler handler, IShapeView shapeView) { }
public static void MapStrokeThickness(IShapeViewHandler handler, IShapeView shapeView) { handler.PlatformView?.InvalidateShape(shapeView); }
public static void MapBackground(IShapeViewHandler handler, IShapeView shapeView) { }
public static void MapStrokeLineJoin(IShapeViewHandler handler, IShapeView shapeView) { handler.PlatformView?.InvalidateShape(shapeView); }
public static void MapRenderTransform(IShapeViewHandler handler, Path path) { }
public static void MapX1(IShapeViewHandler handler, Line line) { handler.PlatformView?.InvalidateShape(line); }
public static void MapRadiusX(IShapeViewHandler handler, Rectangle rectangle) { }
public static void MapShape(IShapeViewHandler handler, Polyline polyline) { handler.PlatformView?.UpdateShape(polyline); }
public static void MapRenderTransform(IShapeViewHandler handler, Path path) { handler.PlatformView?.InvalidateShape(path); }
public static void MapShape(IShapeViewHandler handler, IShapeView shapeView) { handler.PlatformView?.UpdateShape(shapeView); }
public static void MapX1(IShapeViewHandler handler, Line line) { }