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;
        }
        private void AnimeGridItem_OnPointerReleased(object sender, PointerRoutedEventArgs e)
        {
            if (_manip != null)
            {
                if (_incDecState != null)
                {
                    if (_incDecState.Value)
                    {
                        ViewModel.IncrementWatchedCommand.Execute(null);
                    }
                    else
                    {
                        ViewModel.DecrementWatchedCommand.Execute(null);
                    }
                    _incDecState = null;
                }
            }

            GoBackStoryboard.Begin();
        }
示例#3
0
        private async 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;
            await Task.Delay(50);

            ViewModel.AllowDetailsNavigation = true;
        }