Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 89864

Is there a way to update a progress bar view while a content page is loading?

$
0
0

This may sound like a weird question. However, I'm working a ContentPage that loads many views inside a scrollview control and it takes over 10 seconds for the page to actually display. While the page is loading the application UI does not update and so it looks like nothing is happening. I tried to add an animation or a progress bar, but neither updates while the views continue to be loaded inside the scrollview. I've tried all sort of combinations of async/await and Device.BeginInvokeOnMainThread blocks to make the process faster, but bottom line is I need a way to force an update on the progress bar or animation manually. I don't see an 'Invalidate' or similar method to force the progress bar update. What's the best way to do this?

Also, when does the UI is finally updated? When it goes into idle? The UI refresh/update seems to be totally under Xamarin Forms Layout logic. Is there a way to invalidate a content page at will?

Thanks,
Ignacio


Viewing all articles
Browse latest Browse all 89864

Trending Articles