Share via


Control.OnPointerExited(PointerRoutedEventArgs) Method

Definition

Called before the PointerExited event occurs.

protected:
 virtual void OnPointerExited(PointerRoutedEventArgs ^ e) = OnPointerExited;
void OnPointerExited(PointerRoutedEventArgs const& e);
protected virtual void OnPointerExited(PointerRoutedEventArgs e);
function onPointerExited(e)
Protected Overridable Sub OnPointerExited (e As PointerRoutedEventArgs)

Parameters

e
PointerRoutedEventArgs

Event data for the event.

Remarks

Typically, PointerEntered and PointerExited events are fired if the pointer is physically moved by the user. However, there are circumstances where these events can also fire if the pointer is not physically moved by the user.

  • A PointerEntered event is fired if the object with a PointerEntered handler is programmatically moved underneath the pointer, the object Visibility is changed from Collapsed to Visible while it's underneath the pointer, or the cursor is over an element such as a popup or flyout that disappears, causing the cursor to now appear over the object.
  • If a PointerEntered event has fired on an object, a corresponding PointerExited event is fired when a UI state change occurs that causes the pointer to no longer be over that object. For example, the object position is programmatically moved to no longer be underneath the pointer, the object Visibility is set to Collapsed, or the pointer is over transient UI such as a popup or flyout that is programmatically dismissed or a display timeout occurs.

Applies to

See also