Share via


Hyperlink.GotFocus Evento

Definición

Se produce cuando un hipervínculo recibe el foco.

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

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

// Revoke with event_revoker
Hyperlink::GotFocus_revoker GotFocus(auto_revoke_t, RoutedEventHandler const& handler) const;
public event RoutedEventHandler GotFocus;
function onGotFocus(eventArgs) { /* Your code */ }
hyperlink.addEventListener("gotfocus", onGotFocus);
hyperlink.removeEventListener("gotfocus", onGotFocus);
- or -
hyperlink.ongotfocus = onGotFocus;
Public Custom Event GotFocus As RoutedEventHandler 
<Hyperlink GotFocus="eventhandler"/>

Tipo de evento

Requisitos de Windows

Familia de dispositivos
Windows 10 Creators Update (se introdujo en la versión 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (se introdujo en la versión v4.0)

Comentarios

Para obtener más información, consulta UIElement.GotFocus.

Se aplica a

Consulte también