Dela via


ContentLink.LostFocus Event

Definition

Occurs when a link loses focus.

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

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

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

Event Type

Remarks

Important

This API supports content links. The Windows features that enable content links are not available in versions of Windows after Windows 10 version 1903. Content links for XAML text controls will not function in versions of Windows later than version 1903.

For more info, see UIElement.LostFocus.

Applies to