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

REMOVING PAGE FROM NAVIGATION STACK AND CALLING POPASYNC SHOWS BLANK PAGE FOR A SECOND

$
0
0

Please find my below code:

private void OnNewUserButtonClick(object sender, EventArgs eventArgs)
{
for (var count = 1; count <= 3; count++)
{
Navigation.RemovePage(this.Navigation.NavigationStack[6 - count]);
}
Navigation.PopAsync();
}

=========================================

MY QUESTION:

On clicking the particular button, I want to remove the previous 3 pages and need to PopAsync; so that I will be navigating back to the page I want (ex., navigating from 6th page to 2nd page).

All works fine as expected but, on navigating, the page (ex., 2nd page) appears AFTER SHOWING BLANK SCREEN for a fraction of millisecond (0.5 Sec).

I have checked OnAppearing method in second page and I done nothing there for hiding the UI.

Is that a Xamarin Forms issue...?

Your response are well appreciated..

Thank you in advance.


Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>