private async void LessonContainer_TouchDown(object sender, TouchEventArgs e) { // Forward touch events to container //FrameworkElement control = sender as FrameworkElement; //control.CaptureTouch(e.TouchDevice); if (layerStack.CurrentState.FingerInkingEnabled) { LessonContainer.IsContentManipulationEnabled = false; return; } // Saves current touch information //touchDevices.Add(e.TouchDevice); touchOrigin = e.GetTouchPoint(LessonContainer).Position; // Disable manipulation/drawing //LessonContainer.IsContentManipulationEnabled = false; layerStack.ContainerTouchDown(); // If touch-and-hold (within 10px radius circle, over 500ms) if (await TouchHelper.TouchHold(e, LessonContainer, 500, 10)) { // Opens RadialMenu LessonContainer.IsContentManipulationEnabled = false; layerStack.OpenRadialMenu(layerStack.Viewport.GetViewport(), e.GetTouchPoint(LessonContainer).Position, RadialMenuState.Levels.Main); // Un-forward touch events to container //control.ReleaseAllTouchCaptures(); } }