// 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 IndicatorClick(object sender, RoutedEventArgs e)
        {
            // find the index of the clicked item and jump the flip view to that index
            FeaturedFlipViewSample clickedFeaturedSample = (sender as Button).DataContext as FeaturedFlipViewSample;
            int index = Model.FlipViewItems.IndexOf(clickedFeaturedSample);

            if (index >= 0 && index <= Model.FlipViewItems.Count())
            {
                _ProgressFlipView            = false;
                BannerFlipView.SelectedIndex = index;
            }
        }
Exemplo n.º 3
0
        // Navigate to the sample that the user selected
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            FeaturedFlipViewSample SelectedSample = BannerFlipView.SelectedItem as FeaturedFlipViewSample;

            MainNavigationViewModel.NavigateToSample(SelectedSample.SampleDefinition);
        }
Exemplo n.º 4
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            FeaturedFlipViewSample SelectedSample = BannerFlipView.SelectedItem as FeaturedFlipViewSample;

            MainPage.Instance.NavigateToPage(typeof(SampleHost), SelectedSample.SampleDefinition);
        }