Hyperlink.GotFocus Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Occurs when a Hyperlink 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
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"/>
Event Type
Windows requirements
Device family |
Windows 10 Creators Update (introduced in 10.0.15063.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v4.0)
|
Remarks
For more info, see UIElement.GotFocus
Applies to
See also
Váš názor
https://aka.ms/ContentUserFeedback.
Připravujeme: V průběhu roku 2024 budeme postupně vyřazovat problémy z GitHub coby mechanismus zpětné vazby pro obsah a nahrazovat ho novým systémem zpětné vazby. Další informace naleznete v tématu:Odeslat a zobrazit názory pro