5

I would like to render a Xamarin Forms XAML page as an image, when running inside my app.

Is this possible?

I am aware that I can use native platform APIs to capture the screen, however I want to capture all information, including any information outside of the bottom boundary of the screen.

To clarify on the comments...

I'm not after a screenshot. I need to be able to save the contents of the view/page (including where the user would need to scroll) into an image.

Sam
  • 4,219
  • 7
  • 52
  • 80
  • This should use dependencyservice in each platform . https://www.c-sharpcorner.com/article/xamarin-forms-capture-screenshot-using-dependencyservice2/ – Junior Jiang Sep 04 '19 at 06:28
  • Umm like a screenshot? I mean I am not sure what you are asking for! – FreakyAli Sep 04 '19 at 07:00
  • Based on your clarification, you need a scrollshot? – iSpain17 Sep 04 '19 at 08:53
  • If so, for Android, check this out: https://programmingcode4life.blogspot.com/2016/10/convert-layout-view-to-image-and-store.html - for iOS, you could use this: https://stackoverflow.com/questions/30696307/how-to-convert-a-uiview-to-an-image but make sure instead of UIView you use UIScrollView – iSpain17 Sep 04 '19 at 09:03

0 Answers0