// Get the frame that this flipviewindicator is a child of, and then navigate to the // sample that the user selected private void Button_Click(object sender, RoutedEventArgs e) { FeaturedFlipViewSample SelectedSample = BannerFlipView.SelectedItem as FeaturedFlipViewSample; Frame mainPivotFrame = MainNavigationViewModel.GetPivotFrame(this); mainPivotFrame.Navigate(typeof(SampleHost), SelectedSample.SampleDefinition); }
private void SamplePage_BackRequested(object sender, Windows.UI.Core.BackRequestedEventArgs e) { Frame pivotItemFrame = MainNavigationViewModel.GetPivotFrame(this); if (pivotItemFrame != null) { e.Handled = true; (pivotItemFrame).GoBack(); } }