| File: Handlers\ShapeView\ShapeViewHandler.cs | Web Access |
| Project: src\src\Core\src\Core.csproj (Microsoft.Maui) |
#if __IOS__ || MACCATALYST using PlatformView = Microsoft.Maui.Platform.MauiShapeView; #elif MONOANDROID using PlatformView = Microsoft.Maui.Platform.MauiShapeView; #elif WINDOWS using PlatformView = Microsoft.Maui.Graphics.Win2D.W2DGraphicsView; #elif TIZEN using PlatformView = Microsoft.Maui.Platform.MauiShapeView; #elif (NETSTANDARD || !PLATFORM) || (NET6_0_OR_GREATER && !IOS && !ANDROID && !TIZEN) using PlatformView = System.Object; #endif namespace Microsoft.Maui.Handlers { public partial class ShapeViewHandler : IShapeViewHandler { public static IPropertyMapper<IShapeView, IShapeViewHandler> Mapper = new PropertyMapper<IShapeView, IShapeViewHandler>(ViewHandler.ViewMapper) { [nameof(IShapeView.Background)] = MapBackground, [nameof(IShapeView.Shape)] = MapShape, [nameof(IShapeView.Aspect)] = MapAspect, [nameof(IShapeView.Fill)] = MapFill, [nameof(IShapeView.Stroke)] = MapStroke, [nameof(IShapeView.StrokeThickness)] = MapStrokeThickness, [nameof(IShapeView.StrokeDashPattern)] = MapStrokeDashPattern, [nameof(IShapeView.StrokeDashOffset)] = MapStrokeDashOffset, [nameof(IShapeView.StrokeLineCap)] = MapStrokeLineCap, [nameof(IShapeView.StrokeLineJoin)] = MapStrokeLineJoin, [nameof(IShapeView.StrokeMiterLimit)] = MapStrokeMiterLimit }; public static CommandMapper<IShapeView, IShapeViewHandler> CommandMapper = new(ViewCommandMapper) { }; public ShapeViewHandler() : base(Mapper, CommandMapper) { } public ShapeViewHandler(IPropertyMapper? mapper) : base(mapper ?? Mapper, CommandMapper) { } public ShapeViewHandler(IPropertyMapper? mapper, CommandMapper? commandMapper) : base(mapper ?? Mapper, commandMapper ?? CommandMapper) { } IShapeView IShapeViewHandler.VirtualView => VirtualView; PlatformView IShapeViewHandler.PlatformView => PlatformView; } }