示例#1
0
        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;
        }
示例#2
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();
         }
     }
 }
示例#3
0
 private void AlignGrid_PointerReleased(object sender, PointerRoutedEventArgs e)
 {
     CarouVideo.Play();
     StoryViews.PauseStartTimer(false);
 }