I have a ContentPage
which requires some "heavy lifting" before its data can be shown.
So, my idea was to have an ActivityIndicator
on the page visible until the data is ready to be displayed.
I'm trying to figure out a suitable event to use for this purpose.
I can't use the Appearing
event as that happens right before the page becomes visible.
Same goes for events like Loaded
or NavigatedTo
, as they all fire before the page becomes visible.
So, my question is: is there a suitable event for performing some long-running task after a page has loaded and become visible to the user?
Edit: The long-running operation is async
, but it seems the data-binding to a CollectionView
on the page is what is causing perceived lag when the page loads, which is why I'd like to hold off on data-binding until the page is visible with the ActivityIndicator
spinning.
Edit 2: I might have been chasing a red herring. The UI stutters seem to be caused by some SVGs that were loaded in the CollectionView
template. Not sure why, perhaps related to the PNG conversion. Either way, I don't think I actually need the type of event I was originally looking for.