dotnet / Microsoft.Maui.Graphics.Controls

Experimental Microsoft.Maui.Graphics.Controls - Build drawn controls (Cupertino, Fluent and Material)
MIT License
651 stars 64 forks source link

[Enhancement] RenderMode property #66

Open jsuarezruiz opened 3 years ago

jsuarezruiz commented 3 years ago

Include a RenderMode property.

RenderMode = "Native|Skia"

This way we allow to choose if render the control using the native drawing APIs or SkiaSharp.

Use native drawing APIs

Pros

Cons

Use SkiaSharp

Pros

Cons

RChrisCoble commented 3 years ago

In my UC, the canvas will already be created for rendering primitives in general, and we need to add controls onto the existing canvas after the fact. Which rendering backend Maui.Graphics will be using would already be determined in that situation. Please make sure there's an ability to draw these controls on an existing canvas, and the "RenderMode" should have some type of default "UseExisting".