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); }
private void OnRepeaterGotFocus(object sender, RoutedEventArgs e) { FocusedPageIndexTextBlock.Text = $"Current focused page index: {repeater.GetElementIndex((UIElement)e.OriginalSource).ToString()}"; }