protected override void OnNavigatedTo(NavigationEventArgs e) { base.OnNavigatedTo(e); mainPage = e.Parameter as MainPage; mainPage.InitCollectionFinished += InitCollectionFinishedHandler; this.NavigationCacheMode = NavigationCacheMode.Disabled; QuoteFadeIn.Begin(); timeStartShowing = DateTimeOffset.Now.TimeOfDay; }
protected async override void OnNavigatedTo(NavigationEventArgs e) { try { base.OnNavigatedTo(e); mainPage = e.Parameter as MainPage; mainPage.InitCollectionFinished += InitCollectionFinishedHandler; this.NavigationCacheMode = NavigationCacheMode.Disabled; QuoteFadeIn.Begin(); timeStartShowing = DateTimeOffset.Now.TimeOfDay; } catch (Exception ex) { await UIHelper.ShowMessageDialog(ex.Message, "Failed to navigate to FirstPage"); } }