1

I'm trying to draw new elements/images via the new skiasharp library for xamarin forms. I got the samples working but they only change the full content page with the new canvas.

So my question would be how to implement a single view which can be placed in any place in another content page. Does anyone have experiences with skia? How do I choose the canvas? Do I have to overwrite an existing Image or similar?

Thanks for you help.

Chris
  • 105
  • 1
  • 10

1 Answers1

2

Sure, and there is a view which you are looking for: SkiaView.

It inherited from Xamarin.Forms.View and contains some properties such as HeightRequest or Scale.

I suppose you are interested in these classes:

EDIT:

Finally there is a NuGet package with Xamarin.Forms support: SkiaSharp.Views.Forms 1.54.1-beta1. Samples are available in SkiaSharp repository.

Mikalai Daronin
  • 8,590
  • 2
  • 35
  • 47
  • Hi Nikolai, thanks for your input... the hint with the HeightRequest was the thing I was missing.... Without a specific Height and Width the View ist not shown .... and yes of course this makes sense... :-) – Chris May 03 '16 at 14:29
  • These links seem to be outdated. What are the new classes for Skia and Xamarin Forms? I've been struggling to get a simple Hello World to show up. – Jason Oct 15 '16 at 17:16