question

WilliePhillips-5484 avatar image
0 Votes"
WilliePhillips-5484 asked KyleWang-MSFT commented

ListView like Custom Control on SkiaSharp for Xamarin Forms?

Hi,
I want to write ListView like control without using any existing control not even ScrollView or anything (Totally from scratch) using SkiaSharp.
Is it possible to render Views on SkiaSharpView/Canvas? like Label, Image in Stack Layout for each cell/Item?

Thank you

dotnet-xamarin
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@WilliePhillips-5484 SkiaSharp only provides how to draw 2D graphics in Xamarin.Forms. I am afraid that if you want to implement scrolling, wrapping it with a ScrollView is necessary. About how to draw text or bitmap, you can refer to Integrating Text and Graphics and Displaying SkiaSharp bitmaps. You can also download the sample from GitHub: SkiaSharpForms/Demos.

0 Votes 0 ·

Thank you for reply, I thought SKCanvasView is capable of hosting other views/controls but not, anyway I will find some other ways to display label and images

Regards

0 Votes 0 ·

@WilliePhillips-5484 About achieving such capability, you can try to submit a feature request on GitHub mono/SkiaSharp.

0 Votes 0 ·

0 Answers