示例#1
0
        private void LessonContainer_TouchMove(object sender, TouchEventArgs e)
        {
            if (LayerStackDC.CurrentState.FingerInkingEnabled)
            {
                LessonContainer.IsContentManipulationEnabled = false;
                return;
            }

            // Verification to triggers this only one time
            if (!LessonContainer.IsContentManipulationEnabled && !LayerStackDC.RadialMenuState.IsOpen)
            {
                // If the manipulation is more than 10px expansion
                var touchCurrent = e.GetTouchPoint(LessonContainer).Position;
                if (TouchHelper.Distance(touchOrigin, touchCurrent) > 10)
                {
                    // Re-enable manipulation/drawing
                    //LayerStackDC.ContainerTouchMove();
                    LessonContainer.IsContentManipulationEnabled = true;

                    // Un-forward touch events to container
                    //foreach (var device in touchDevices)
                    //{
                    //    LessonContainer.ContentCaptureTouch(device);
                    //}
                }
            }
        }