public MouseUp ( MouseEventArgs e, Point rawPt ) : void | ||
e | MouseEventArgs | A MouseEventArgs that contains the event data. |
rawPt | Point | The actual point provided from the windows message. |
Результат | void |
/// <summary> /// Raises the MouseUp event. /// </summary> /// <param name="e">A MouseEventArgs that contains the event data.</param> protected override void OnMouseUp(MouseEventArgs e) { // Cannot process a message for a disposed control if (!IsDisposed) { // Do we have a manager for processing mouse messages? ViewManager?.MouseUp(e, new Point(e.X, e.Y)); } // Do not call base class! Prevent capture of the mouse }
/// <summary> /// Raises the MouseUp event. /// </summary> /// <param name="e">A MouseEventArgs that contains the event data.</param> protected override void OnMouseUp(MouseEventArgs e) { // Cannot process a message for a disposed control if (!IsDisposed) { // Do we have a manager for processing mouse messages? ViewManager?.MouseUp(e, new Point(e.X, e.Y)); } // Let base class fire events base.OnMouseUp(e); }