ערוך

שתף באמצעות


ButtonBase.OnLostMouseCapture(MouseEventArgs) Method

Definition

Provides class handling for the LostMouseCapture routed event that occurs when this control is no longer receiving mouse event messages.

protected:
 override void OnLostMouseCapture(System::Windows::Input::MouseEventArgs ^ e);
protected override void OnLostMouseCapture (System.Windows.Input.MouseEventArgs e);
override this.OnLostMouseCapture : System.Windows.Input.MouseEventArgs -> unit
Protected Overrides Sub OnLostMouseCapture (e As MouseEventArgs)

Parameters

e
MouseEventArgs

The event data for the LostMouseCapture event.

Remarks

This implementation does not change the handled state (the Handled property) of the LostMouseCapture event data.

Notes to Inheritors

If you override OnLostMouseCapture(MouseEventArgs), always call the base implementation in your OnLostMouseCapture(MouseEventArgs) implementation. Failure to call the base implementation prevents base classes from handling the event with a class handler, which might change the run-time behavior of the final class. You can call the base implementation either before or after your special handling, depending on your requirements.

Applies to