Skip to content

Update Popup Content On Runtime #654

Closed Answered by vhugogarcia
vhugogarcia asked this question in Q&A
Discussion options

You must be logged in to vote

I found the answer myself! I need to update the content directly on the Content not overwriting it as I was trying to do it.

if (popup.Content is VerticalStackLayout) { // Update the message var layout = (VerticalStackLayout)popup.Content; if (layout.Children.Count > 1 && layout.Children[1] is Label) ((Label)layout.Children[1]).Text = message; }

Community.Toolkit.Popups.and.Lottie.mov

Thanks to this I am now able to set perfect loading animations for my application using Lottie. See attached video.

thanks everybody for your help and this amazing library!

Replies: 1 comment

Comment options

vhugogarcia
Sep 26, 2022
Collaborator Author

You must be logged in to vote
0 replies
Answer selected by brminnick
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant