Example #1
0
        private void HandlePointerPressed(object sender, PointerRoutedEventArgs e)
        {
            // Don't interact if any of the animations are still running
            if (_sw1.IsRunning || _sw1.IsRunning)
            {
                return;
            }

            RenderGrid.CapturePointer(e.Pointer);
            _swipeStartPoint = e.GetCurrentPoint(RenderGrid).Position;
            // Position the bubble at the same height as the touch
            _verticalReveal = (float)(_swipeStartPoint.Y / _rootSize.Height) * VerticalRevealFactor;
            _sw0.Restart();
            _swipeDir      = SwipeDirection.None;
            _isPointerDown = true;
        }