ContentLink.GotFocus Evento

Definizione

Si verifica quando un collegamento riceve lo stato attivo.

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

Tipo evento

Commenti

Importante

Questa API supporta i collegamenti di contenuto. Le funzionalità di Windows che abilitano i collegamenti al contenuto non sono disponibili nelle versioni di Windows successive a Windows 10 versione 1903. I collegamenti al contenuto per i controlli di testo XAML non funzioneranno nelle versioni di Windows successive alla 1903.

Per altre info, vedi UIElement.GotFocus.

Si applica a