UIElement.LostFocus Event

Definition

// Register
event_token LostFocus(RoutedEventHandler const& handler) const;

// Revoke with event_token
void LostFocus(event_token const* cookie) const;

// Revoke with event_revoker
UIElement::LostFocus_revoker LostFocus(auto_revoke_t, RoutedEventHandler const& handler) const;
public event RoutedEventHandler LostFocus;
function onLostFocus(eventArgs) { /* Your code */ }
uIElement.addEventListener("lostfocus", onLostFocus);
uIElement.removeEventListener("lostfocus", onLostFocus);
- or -
uIElement.onlostfocus = onLostFocus;
Public Custom Event LostFocus As RoutedEventHandler 

Event Type

Applies to