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 CarouselItemUCStories_PropertyChanged(object sender, PropertyChangedEventArgs e) { if (e.PropertyName == "Play") { var value = DataContext as InstaStoryItem; if (value.Play) { CarouVideo.Play(); } else { CarouVideo.Stop(); } } }
private void AlignGrid_PointerReleased(object sender, PointerRoutedEventArgs e) { CarouVideo.Play(); StoryViews.PauseStartTimer(false); }