/// <summary> /// Invoked when an unhandled <see cref="E:System.Windows.Input.Mouse.MouseLeave" /> attached event is raised on this element. Implement this method to add class handling for this event. /// </summary> /// <param name="e">The <see cref="T:System.Windows.Input.MouseEventArgs" /> that contains the event data.</param> protected override void OnMouseLeave(MouseEventArgs e) { base.OnMouseEnter(e); if (e.Handled) { return; } e.Handled = this.ActualController.HandleMouseLeave(this, e.ToMouseEventArgs(this)); }
/// <summary> /// Invoked when an unhandled <see cref="E:System.Windows.Input.Mouse.MouseEnter" /> attached event is raised on this element. Implement this method to add class handling for this event. /// </summary> /// <param name="e">The <see cref="T:System.Windows.Input.MouseEventArgs" /> that contains the event data.</param> protected override void OnMouseEnter(MouseEventArgs e) { base.OnMouseEnter(e); if (e.Handled) { return; } e.Handled = this.ActualController.HandleMouseEnter(this, e.ToMouseEventArgs(this, this.plotImage.Offset)); }
/// <summary> /// Called before the <see cref="E:System.Windows.UIElement.MouseLeave" /> event occurs. /// </summary> /// <param name="e">The data for the event.</param> protected override void OnMouseLeave(MouseEventArgs e) { base.OnMouseLeave(e); this.ActualController.HandleMouseLeave(this, e.ToMouseEventArgs(this)); }
/// <summary> /// Raises the <see cref="E:System.Windows.Forms.Control.MouseMove" /> event. /// </summary> /// <param name="e">A <see cref="T:System.Windows.Forms.MouseEventArgs" /> that contains the event data.</param> protected override void OnMouseMove(MouseEventArgs e) { base.OnMouseMove(e); this.ActualController.HandleMouseMove(this, e.ToMouseEventArgs(GetModifiers())); }