Forum Xamarin.Forms
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

How to have SKGlView's PaintSurface occuring before Page is first rendered (on Android)?

MattJackMattJack FRMember ✭✭

I have a Xamarin.Forms that renders some drawing using SkiaSharp's SKCanvasView
I'm running it on Android, it's working OK.
Now, I need to use a SKGlView instead of a SKCanvasView to take benefit of OpenGL speed.
Here is the problem:

With SKCanvasView, first call to PaintSurface occures before the page renders, which is good because when the page appears, the SKCanvasView displays my rendering immediatly.

But with SKGlView, first call to PaintSurface occures "too late", i.e. the page is already rendered on screen. So the SKGlView is first displayed "white" during a short time, until PaintSurface occures.

How to have SKGlView's PaintSurface occuring before Page is first rendered?

Sign In or Register to comment.