Exemplo n.º 1
0
        private static AnimeGridItem _manip; //currently manipulated item

        private void AnimeGridItem_OnManipulationStarted(object sender, ManipulationStartedRoutedEventArgs e)
        {
            if (_manip != null)
            {
                return;
            }
            _initialPoint             = e.Position;
            _manip                    = this;
            DecrementField.Visibility = IncrementField.Visibility = Visibility.Visible;
        }
Exemplo n.º 2
0
        private void AnimeGridItem_OnManipulationCompleted(object sender, ManipulationCompletedRoutedEventArgs e)
        {
            GoBackStoryboard.Begin();
            if (_incDecState != null)
            {
                if (_incDecState.Value)
                {
                    ViewModel.IncrementWatchedCommand.Execute(null);
                }
                else
                {
                    ViewModel.DecrementWatchedCommand.Execute(null);
                }
            }


            _incDecState = null;
            _manip       = null;
            ViewModel.AllowDetailsNavigation = true;
        }