示例#1
0
        private void Canvas_PointerPressed(object sender, PointerRoutedEventArgs e)
        {
            pointerPoints.Add(e.GetCurrentPoint(canvas));

            var isBool = canvas.CapturePointer(e.Pointer);
            var list   = canvas.PointerCaptures.ToArray();

            startAverageDistanceWidthPossible = startAverageDistanceHeightPossible = true;
            GetAverageDistanceBetweenPointers(out startAverageDistanceWidth, out startAverageDistanceHeight);

            GetAverageMiddlePointOfPointers(out startAveragePointX, out startAveragePointY);
            preMoveTicks = DateTime.Now.Ticks;

            startViewDimensions = CurrentViewDimensions.Clone();
        }