2 implementations of IShapeView
Microsoft.Maui.Controls (2)
BoxView\BoxView.cs (1)
10
public partial class BoxView : View, IColorElement, ICornerElement, IElementConfiguration<BoxView>,
IShapeView
, IShape
Shapes\Shape.cs (1)
10
public abstract partial class Shape : View,
IShapeView
, IShape
53 references to IShapeView
Microsoft.Maui (33)
Graphics\ShapeDrawable.cs (5)
8
WeakReference<
IShapeView
>? _shapeView;
14
public ShapeDrawable(
IShapeView
? shape)
19
internal
IShapeView
? ShapeView
21
get => _shapeView is not null && _shapeView.TryGetTarget(out
var
d) ? d : null;
37
public void UpdateShapeView(
IShapeView
? shape)
Handlers\ShapeView\IShapeViewHandler.cs (1)
17
new
IShapeView
VirtualView { get; }
Handlers\ShapeView\ShapeViewHandler.cs (15)
18
public static IPropertyMapper<
IShapeView
, IShapeViewHandler> Mapper = new PropertyMapper<
IShapeView
, IShapeViewHandler>(ViewHandler.ViewMapper)
20
[nameof(
IShapeView
.Background)] = MapBackground,
21
[nameof(
IShapeView
.Shape)] = MapShape,
22
[nameof(
IShapeView
.Aspect)] = MapAspect,
23
[nameof(
IShapeView
.Fill)] = MapFill,
24
[nameof(
IShapeView
.Stroke)] = MapStroke,
25
[nameof(
IShapeView
.StrokeThickness)] = MapStrokeThickness,
26
[nameof(
IShapeView
.StrokeDashPattern)] = MapStrokeDashPattern,
27
[nameof(
IShapeView
.StrokeDashOffset)] = MapStrokeDashOffset,
28
[nameof(
IShapeView
.StrokeLineCap)] = MapStrokeLineCap,
29
[nameof(
IShapeView
.StrokeLineJoin)] = MapStrokeLineJoin,
30
[nameof(
IShapeView
.StrokeMiterLimit)] = MapStrokeMiterLimit
33
public static CommandMapper<
IShapeView
, IShapeViewHandler> CommandMapper = new(ViewCommandMapper)
51
IShapeView
IShapeViewHandler.VirtualView => VirtualView;
Handlers\ShapeView\ShapeViewHandler.Standard.cs (12)
6
public partial class ShapeViewHandler : ViewHandler<
IShapeView
, object>
10
public static void MapBackground(IShapeViewHandler handler,
IShapeView
shapeView) { }
11
public static void MapShape(IShapeViewHandler handler,
IShapeView
shapeView) { }
12
public static void MapAspect(IShapeViewHandler handler,
IShapeView
shapeView) { }
13
public static void MapFill(IShapeViewHandler handler,
IShapeView
shapeView) { }
14
public static void MapStroke(IShapeViewHandler handler,
IShapeView
shapeView) { }
15
public static void MapStrokeThickness(IShapeViewHandler handler,
IShapeView
shapeView) { }
16
public static void MapStrokeDashPattern(IShapeViewHandler handler,
IShapeView
shapeView) { }
17
public static void MapStrokeDashOffset(IShapeViewHandler handler,
IShapeView
shapeView) { }
18
public static void MapStrokeLineCap(IShapeViewHandler handler,
IShapeView
shapeView) { }
19
public static void MapStrokeLineJoin(IShapeViewHandler handler,
IShapeView
shapeView) { }
20
public static void MapStrokeMiterLimit(IShapeViewHandler handler,
IShapeView
shapeView) { }
Microsoft.Maui.Controls (20)
BoxView\BoxView.cs (4)
63
Handler?.UpdateValue(nameof(
IShapeView
.Shape));
66
IShape?
IShapeView
.Shape => this;
68
PathAspect
IShapeView
.Aspect => PathAspect.None;
70
Paint?
IShapeView
.Fill => Color?.AsPaint();
Handlers\Shapes\Path\PathHandler.cs (1)
10
[nameof(
IShapeView
.Shape)] = MapShape,
Handlers\Shapes\Polygon\PolygonHandler.cs (1)
10
[nameof(
IShapeView
.Shape)] = MapShape,
Handlers\Shapes\Polyline\PolylineHandler.cs (1)
10
[nameof(
IShapeView
.Shape)] = MapShape,
Platform\ShapeExtensions.cs (1)
8
internal static WindingMode GetPathWindingMode(this IDrawable drawable,
IShapeView
shapeView)
Shape\Shape.Mapper.cs (1)
16
ShapeViewHandler.Mapper.ReplaceMapping<
IShapeView
, IShapeViewHandler>(nameof(StrokeDashArray), MapStrokeDashArray);
Shape\Shape.Standard.cs (1)
13
public static void MapStrokeDashArray(IShapeViewHandler handler,
IShapeView
shapeView) { }
Shapes\Ellipse.cs (1)
26
Handler?.UpdateValue(nameof(
IShapeView
.Shape));
Shapes\Line.cs (1)
76
Handler?.UpdateValue(nameof(
IShapeView
.Shape));
Shapes\Path.cs (1)
104
Handler?.UpdateValue(nameof(
IShapeView
.Shape));
Shapes\Polygon.cs (1)
50
Handler?.UpdateValue(nameof(
IShapeView
.Shape));
Shapes\Polyline.cs (1)
49
Handler?.UpdateValue(nameof(
IShapeView
.Shape));
Shapes\Rectangle.cs (1)
46
Handler?.UpdateValue(nameof(
IShapeView
.Shape));
Shapes\RoundRectangle.cs (1)
53
Handler?.UpdateValue(nameof(
IShapeView
.Shape));
Shapes\Shape.cs (3)
152
IShape
IShapeView
.Shape => this;
154
PathAspect
IShapeView
.Aspect
164
Paint
IShapeView
.Fill => Fill;