Esempio n. 1
0
        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";
                }
            }
        }
Esempio n. 2
0
 private void AlignGrid_PointerReleased(object sender, PointerRoutedEventArgs e)
 {
     CarouVideo.Play();
     StoryViews.PauseStartTimer(false);
 }
Esempio n. 3
0
 private void AlignGrid_PointerPressed(object sender, PointerRoutedEventArgs e)
 {
     CarouVideo.Pause();
     StoryViews.PauseStartTimer(true);
 }