Is there a sample app for SkiaSharp.Views.Blazor in Maui? #3181
-
My client wants to update the look of their app. The heart of the app is a custom map-based view, rendered in SkiaSharp. On Windows, iOS, Android. The obvious way to add HTML forms, is Maui Blazor Hybrid. I see that there are two ways to add SkiaSharp to Maui Blazor:
(1) Is a technique I understand well. BUT we need the SkiaSharp layer UNDERNEATH the BlazorWebView. (2) Is new to me. I have not done Blazor development. Is there a sample app for SkiaSharp.Views.Blazor? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
FYI: I found When Blazor meets SkiaSharp. I think that is for Blazor on web. But what is shown should work inside Maui, I presume. Then I need to learn techniques for interop between Blazor and any not-Blazor classes in the app. Or maybe object references "just work", like any C# code, if I'm not trying to talk to Maui Controls; just plain old C# business logic classes? |
Beta Was this translation helpful? Give feedback.
The SkiaSharp Blazor components don't work in MAUI unfortunately. On the web, it is WASM so the code is all in the same process, but in Blazor Server and Maui Hybrid, the web control is a separate process.
Where are you planning on using SkiaSharp in the pages? For example, if you want to do photo editing or signature capture or something, you could render a native popup or page or overlay with the SkiaSharp canvas.