forked from dotnet/maui
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Adds the GraphicsViewHandler and ShapeViewHandler - Apply one stop shop UseMauiControls (dotnet#1157) - Implements new APIs for each IView - and so on
- Loading branch information
1 parent
52f7175
commit 7995a10
Showing
26 changed files
with
352 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
src/Compatibility/Core/src/Tizen/Renderers/IVisualElementRenderer.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 0 additions & 17 deletions
17
src/Compatibility/Core/src/Tizen/VisualElementChangedEventArgs.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
src/Core/src/Handlers/GraphicsView/GraphicsViewHandler.Tizen.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
using Microsoft.Maui.Graphics.Skia.Views; | ||
|
||
namespace Microsoft.Maui.Handlers | ||
{ | ||
public partial class GraphicsViewHandler : ViewHandler<IGraphicsView, SkiaGraphicsView> | ||
{ | ||
protected override SkiaGraphicsView CreateNativeView() | ||
{ | ||
return new SkiaGraphicsView(NativeParent); | ||
} | ||
|
||
public static void MapDrawable(GraphicsViewHandler handler, IGraphicsView graphicsView) | ||
{ | ||
handler.NativeView?.UpdateDrawable(graphicsView); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
using Microsoft.Maui.Graphics; | ||
|
||
namespace Microsoft.Maui.Handlers | ||
{ | ||
public partial class ShapeViewHandler : ViewHandler<IShapeView, MauiShapeView> | ||
{ | ||
protected override MauiShapeView CreateNativeView() | ||
{ | ||
return new MauiShapeView(NativeParent!); | ||
} | ||
|
||
public static void MapShape(ShapeViewHandler handler, IShapeView shapeView) | ||
{ | ||
handler.NativeView?.UpdateShape(shapeView); | ||
} | ||
|
||
public static void MapAspect(ShapeViewHandler handler, IShapeView shapeView) | ||
{ | ||
handler.NativeView?.InvalidateShape(shapeView); | ||
} | ||
|
||
public static void MapFill(ShapeViewHandler handler, IShapeView shapeView) | ||
{ | ||
handler.NativeView?.InvalidateShape(shapeView); | ||
} | ||
|
||
public static void MapStroke(ShapeViewHandler handler, IShapeView shapeView) | ||
{ | ||
handler.NativeView?.InvalidateShape(shapeView); | ||
} | ||
|
||
public static void MapStrokeThickness(ShapeViewHandler handler, IShapeView shapeView) | ||
{ | ||
handler.NativeView?.InvalidateShape(shapeView); | ||
} | ||
|
||
public static void MapStrokeDashPattern(ShapeViewHandler handler, IShapeView shapeView) | ||
{ | ||
handler.NativeView?.InvalidateShape(shapeView); | ||
} | ||
|
||
public static void MapStrokeLineCap(ShapeViewHandler handler, IShapeView shapeView) | ||
{ | ||
handler.NativeView?.InvalidateShape(shapeView); | ||
} | ||
|
||
public static void MapStrokeLineJoin(ShapeViewHandler handler, IShapeView shapeView) | ||
{ | ||
handler.NativeView?.InvalidateShape(shapeView); | ||
} | ||
|
||
public static void MapStrokeMiterLimit(ShapeViewHandler handler, IShapeView shapeView) | ||
{ | ||
handler.NativeView?.InvalidateShape(shapeView); | ||
} | ||
} | ||
} |
Oops, something went wrong.