/// <summary> /// Called before the PointerExited event occurs. /// </summary> /// <param name="e">Event data for the event.</param> protected override void OnPointerExited(PointerRoutedEventArgs e) { base.OnPointerExited(e); if (e.Handled) { return; } e.Handled = this.ActualController.HandleMouseLeave(this, e.ToMouseEventArgs(this)); }
/// <summary> /// Called before the PointerMoved event occurs. /// </summary> /// <param name="e">Event data for the event.</param> protected override void OnPointerMoved(PointerRoutedEventArgs e) { base.OnPointerMoved(e); if (e.Handled) { return; } if (e.Pointer.PointerDeviceType == PointerDeviceType.Mouse) { e.Handled = this.ActualController.HandleMouseMove(this, e.ToMouseEventArgs(this)); } }
/// <summary> /// Called before the PointerMoved event occurs. /// </summary> /// <param name="e">Event data for the event.</param> protected override void OnPointerMoved(PointerRoutedEventArgs e) { base.OnPointerMoved(e); if (e.Handled) { return; } if (e.Pointer.PointerDeviceType == PointerDeviceType.Mouse) { e.Handled = this.ActualController.HandleMouseMove(this, e.ToMouseEventArgs(this)); } // Note: don't handle touch here, this is also handled when moving over when a touch device }
/// <summary> /// Called before the PointerReleased event occurs. /// </summary> /// <param name="e">Event data for the event.</param> protected override void OnPointerReleased(PointerRoutedEventArgs e) { base.OnPointerReleased(e); if (e.Handled) { return; } if (e.Pointer.PointerDeviceType == PointerDeviceType.Mouse) { this.ReleasePointerCapture(e.Pointer); e.Handled = this.ActualController.HandleMouseUp(this, e.ToMouseEventArgs(this)); } else if (e.Pointer.PointerDeviceType == PointerDeviceType.Touch) { e.Handled = this.ActualController.HandleTouchCompleted(this, e.ToTouchEventArgs(this)); } }
/// <summary> /// Called before the PointerReleased event occurs. /// </summary> /// <param name="e">Event data for the event.</param> protected override void OnPointerReleased(PointerRoutedEventArgs e) { base.OnPointerReleased(e); if (e.Handled) { return; } if (e.Pointer.PointerDeviceType == PointerDeviceType.Mouse) { this.ReleasePointerCapture(e.Pointer); e.Handled = this.ActualController.HandleMouseUp(this, e.ToMouseEventArgs(this)); } else if (e.Pointer.PointerDeviceType == PointerDeviceType.Touch) { e.Handled = this.ActualController.HandleTouchCompleted(this, e.ToTouchEventArgs(this)); } }
/// <summary> /// Called before the PointerMoved event occurs. /// </summary> /// <param name="e">Event data for the event.</param> protected override void OnPointerMoved(PointerRoutedEventArgs e) { base.OnPointerMoved(e); if (e.Handled) { return; } if (e.Pointer.PointerDeviceType == PointerDeviceType.Mouse) { e.Handled = this.ActualController.HandleMouseMove(this, e.ToMouseEventArgs(this)); } // Note: don't handle touch here, this is also handled when moving over when a touch device }
/// <summary> /// Called before the PointerExited event occurs. /// </summary> /// <param name="e">Event data for the event.</param> protected override void OnPointerExited(PointerRoutedEventArgs e) { base.OnPointerExited(e); if (e.Handled) { return; } e.Handled = this.ActualController.HandleMouseLeave(this, e.ToMouseEventArgs(this)); }