Hello,
I'm working in a simple Windows 8 application with xaml and c#. I'm using the VS 2012 templates to create pages, with navigation system included.
I'm loading a lot of data, so I decided to add a loading page with a ProgressRing and navigate to the first Application page when loading data is finished:
//loading page
protected async override void OnNavigatedTo(NavigationEventArgs e)
{
...
await topCookerManager.GetBlogsAsync();
this.Frame.Navigate(typeof(MainPage));
...
}
It works well when application is starting, but when I'm on the first page of application and when I'm click on back button I'm redirect to the loading page. So, in the loading page I'm checking if data are loaded and if yes I redirect to the first page.
if (dataManager.Blogs != null && dataManager.Blogs.Count > 0)
this.Frame.Navigate(typeof(MainPage));
Could you please tell me where is my mistake ? Or how implement a loading page.
Thanks for your help.