private async void LessonContainer_TouchDown(object sender, TouchEventArgs e) { // Forward touch events to container //FrameworkElement control = sender as FrameworkElement; //control.CaptureTouch(e.TouchDevice); if (LayerStackDC.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; LayerStackDC.ContainerTouchDown(); // If touch-and-hold (within 10px radius circle, over 500ms) if (await TouchHelper.TouchHold(e, LessonContainer, 500, 10)) { // Opens RadialMenu LessonContainer.IsContentManipulationEnabled = false; LayerStackDC.OpenRadialMenu(LayerStackDC.Viewport.GetViewport(), e.GetTouchPoint(LessonContainer).Position, RadialMenuState.Levels.Main); // Un-forward touch events to container //control.ReleaseAllTouchCaptures(); } }