private void MainGr_ManipulationDelta(object sender, ManipulationDeltaRoutedEventArgs e) { if (e.IsInertial && !_isSwiped) { var swipedDistance = e.Cumulative.Translation.Y; if (Math.Abs(swipedDistance) <= 2) { return; } _isSwiped = true; if (swipedDistance > 0) { //SwipeableTextBlock.Text = "Down Swiped"; } else { CarouVideo.Pause(); StoryViews.PauseStartTimer(true); if (CarouselItem.User.UserName == AppCore.InstaApi.GetLoggedUser().UserName) { EditFr.Navigate(typeof(StoryViewersView), CarouselItem.Id); } //SwipeableTextBlock.Text = "Up Swiped"; } } }
private async void Media_Tapped(object sender, TappedRoutedEventArgs e) { _tapscount++; await Task.Delay(350); if (_tapscount == 0) { return; } if (_tapscount == 1) { if (CarouVideo.Source != null) { if (CarouVideo.CurrentState == MediaElementState.Playing) { CarouVideo.Pause(); } else { CarouVideo.Play(); } } } _tapscount = 0; }
private void AlignGrid_PointerPressed(object sender, PointerRoutedEventArgs e) { CarouVideo.Pause(); StoryViews.PauseStartTimer(true); }