This repository was archived by the owner on May 1, 2024. It is now read-only.
Convert StackLayout underneath Carousel DataTemplate into image #11357
Unanswered
AlleSchonWeg
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
i read this thread (https://forums.xamarin.com/discussion/169795/how-to-convert-stack-layout-into-image-in-xamarin-forms) to convert a stacklayout into an image. My goal is to use share api from xamarin essentials to share the content as an image.
The sample code(accepted answer) from the link above works well if stacklayout is part of a content page, but if a CarouselView is used the code works only once. Sample xaml:
If i navigate to the page which contains the carousel my image creation works. The created image contains a label with the current text. But if i close the page and open it again with a changed ItemsSource the screen shows the correct label text. But now the conversion from stacklayout to image results in a white bitmap.
It only works at the first time. I have to close the app and open again to get this work.
My question is, why it works only the first time? Is it a bug or i do something wrong?
Beta Was this translation helpful? Give feedback.
All reactions