private void PlaybackRootGrid_PointerMoved(object sender, Windows.UI.Xaml.Input.PointerRoutedEventArgs e)
 {
     if (!_carouselAnimationIsActive)
     {
         _carouselAnimationIsActive = true;
         CarouselDisplayingStoryboard.Begin();
     }
 }
        public PlaybackPage()
        {
            this.InitializeComponent();
            vm = this.DataContext as PlaybackViewModel;
            vm.MediaElement = MediaPlayer;
            CarouselDisplayingStoryboard.Completed += CarouselDisplayingStoryboard_Completed;
            KeepCarouselStoryboard.Completed       += KeepCarouselStoryboard_Completed;

            _carouselAnimationIsActive = true;
            CarouselDisplayingStoryboard.Begin();
        }
 private void MediaPlayer_MediaEnded(object sender, Windows.UI.Xaml.RoutedEventArgs e)
 {
     if (!_carouselAnimationIsActive)
     {
         _carouselAnimationIsActive = true;
         CarouselDisplayingStoryboard.Begin();
     }
     if (vm != null)
     {
         vm.VideoEnded();
     }
 }
 private void VideosGrid_PointerEntered(object sender, Windows.UI.Xaml.Input.PointerRoutedEventArgs e)
 {
     if ((sender as Grid).Opacity > 0.0)
     {
         KeepOverCarouselStoryboard.Begin();
         KeepCarouselStoryboard.Stop();
         CarouselDisplayingStoryboard.Stop();
         _carouselAnimationIsActive = false;
     }
     else
     {
         if (!_carouselAnimationIsActive)
         {
             _carouselAnimationIsActive = true;
             CarouselDisplayingStoryboard.Begin();
         }
     }
 }