private void DataGridRowsPresenter_ManipulationStarted(object sender, ManipulationStartedRoutedEventArgs e) { if (e.PointerDeviceType != Windows.Devices.Input.PointerDeviceType.Touch) { e.Complete(); } }
private void OnSwipeManipulationStarted(object sender, ManipulationStartedRoutedEventArgs e) { #if !DEBUG // On UWP, SwipeControl works only with touch. // We do allow other pointers in DEBUG ... well, because it easier to debug on a PC :) if (e.PointerDeviceType != PointerDeviceType.Touch) { e.Complete(); return; } #endif if (m_isIdle) { m_isIdle = false; } m_lastActionWasClosing = false; m_lastActionWasOpening = false; m_isInteracting = true; //Once the user has started interacting with a SwipeControl in the closed state we are free to unblock contents. //Contents of items opposite the currently opened ones will not be created. if (!m_isOpen) { m_blockNearContent = false; m_blockFarContent = false; } _positionWhenCaptured = new Vector2((float)_transform.X, (float)_transform.Y); _grabbedTimer.Start(); _lastMoves.Clear(); }
private void BeginTouchScroll(object sender, ManipulationStartedRoutedEventArgs e) { if (e.PointerDeviceType != PointerDeviceType.Touch) { e.Complete(); return; } }
private void OnManipulationStarted(object sender, ManipulationStartedRoutedEventArgs e) { e.Handled = true; if (e.PointerDeviceType != PointerDeviceType.Touch && e.PointerDeviceType != PointerDeviceType.Mouse || PointInPalmBlock(new Point(e.Position.X - palmBlock.Margin.Left, e.Position.Y - palmBlock.Margin.Top))) { e.Complete(); } }
private void OnSwipeManipulationStarted(object sender, ManipulationStartedRoutedEventArgs e) { #if !DEBUG // On UWP, SwipeControl works only with touch. // We do allow other pointers in DEBUG ... well, because it easier to debug on a PC :) if (e.PointerDeviceType != PointerDeviceType.Touch) { e.Complete(); return; } #endif if (m_isIdle) { m_isIdle = false; } m_lastActionWasClosing = false; m_lastActionWasOpening = false; m_isInteracting = true; //Once the user has started interacting with a SwipeControl in the closed state we are free to unblock contents. //Contents of items opposite the currently opened ones will not be created. if (!m_isOpen) { m_blockNearContent = false; m_blockFarContent = false; } _positionWhenCaptured = new Vector2((float)_transform.X, (float)_transform.Y); // As soon as manipulation starts, we make sure to abort any pending explicit pointer capture, // so button nested (or containing) this SwipeControl won't fire their commands. // It's not the common behavior for buttons, but this has been observed in SwipeControl on UWP as of 2021-07-27. foreach (var pointer in e.Pointers) { if (PointerCapture.TryGet(pointer, out var capture)) { var targets = capture.GetTargets(PointerCaptureKind.Explicit).ToList(); global::System.Diagnostics.Debug.Assert(targets.Count <= 1); foreach (var target in targets) { target.Element.ReleasePointerCapture(capture.Pointer); } } } }
void IManipulationStartedRoutedEventArgsResolver.Complete(ManipulationStartedRoutedEventArgs e) => e.Complete();
private void SeekBarSlider_ManipulationStarted(object sender, ManipulationStartedRoutedEventArgs e) { e.Complete(); }
private void map_ManipulationStarted(object sender, ManipulationStartedRoutedEventArgs e) { e.Handled = true; e.Complete(); }