Share via


ContentLink.GotFocus Ereignis

Definition

Tritt auf, wenn ein Link den Fokus erhält.

// 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 

Ereignistyp

Hinweise

Wichtig

Diese API unterstützt Inhaltslinks. Die Windows-Features, die Inhaltsverknüpfungen ermöglichen, sind in Windows-Versionen nach Windows 10, Version 1903, nicht mehr verfügbar. Inhaltsverknüpfungen für XAML-Textsteuerelemente funktionieren in Windows-Versionen nach Version 1903 nicht mehr.

Weitere Informationen finden Sie unter UIElement.GotFocus.

Gilt für: