private void Page_Loaded(object sender, RoutedEventArgs e) { if (_currentTransition != null) { Continuity.DetailsInfo info = (Continuity.DetailsInfo)_currentTransition.Payload; // Update the Thumbnail image to point to the proper album art ThumbnailImage.Source = new Uri(info.thumbanil.ImageUrl); // Kick off the transition now that the page has loaded _currentTransition.Start(MyGrid, ThumbnailImage, MyScroller, MyScroller); } }
protected override void OnNavigatedTo(NavigationEventArgs e) { base.OnNavigatedTo(e); _currentTransition = (ContinuityTransition)e.Parameter; _detailsInfo = (Continuity.DetailsInfo)_currentTransition.Payload; _host = (SampleHost)_currentTransition.Host; Title.Text = _detailsInfo.thumbanil.Name; DetailText.Text = _detailsInfo.thumbanil.Description; // Enable the back button SystemNavigationManager.GetForCurrentView().AppViewBackButtonVisibility = _host.ContentFrame.CanGoBack ? AppViewBackButtonVisibility.Visible : AppViewBackButtonVisibility.Collapsed; SystemNavigationManager.GetForCurrentView().BackRequested += ContinuityDetails_BackRequested; }