Exemple #1
0
        private void ItemsRepeater_OnTapped(object sender, TappedRoutedEventArgs e)
        {
            base.OnTapped(e);

            var clickedElement = (e.OriginalSource as UIElement);

            var storyView = clickedElement.GetFirstAncestorOfType <StoryView>();

            _index = ItemsRepeater.GetElementIndex(storyView);

            //var image = storyView.GetFirstDescendantOfType<Image>();

            //ConnectedAnimationService.GetForCurrentView().PrepareToAnimate("forwardAnimation", image);

            //NavigationService.Navigate<DetailPage>(ViewModel);
        }
Exemple #2
0
 private void OnRepeaterGotFocus(object sender, RoutedEventArgs e)
 {
     FocusedPageIndexTextBlock.Text = $"Current focused page index: {repeater.GetElementIndex((UIElement)e.OriginalSource).ToString()}";
 }