Inheritance: Windows.UI.Xaml.Controls.UserControl
Ejemplo 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;
        }
Ejemplo n.º 2
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;
        }