Dela via


ContentLink.GotFocus Event

Definition

Occurs when a link receives focus.

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

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

// Revoke with event_revoker
ContentLink::GotFocus_revoker GotFocus(auto_revoke_t, RoutedEventHandler const& handler) const;
public event RoutedEventHandler GotFocus;
function onGotFocus(eventArgs) { /* Your code */ }
contentLink.addEventListener("gotfocus", onGotFocus);
contentLink.removeEventListener("gotfocus", onGotFocus);
- or -
contentLink.ongotfocus = onGotFocus;
Public Custom Event GotFocus 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.GotFocus.

Applies to