Hyperlink.LostFocus 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 loses focus.
// Register
event_token LostFocus(RoutedEventHandler const& handler) const;
// Revoke with event_token
void LostFocus(event_token const* cookie) const;
// Revoke with event_revoker
Hyperlink::LostFocus_revoker LostFocus(auto_revoke_t, RoutedEventHandler const& handler) const;
public event RoutedEventHandler LostFocus;
function onLostFocus(eventArgs) { /* Your code */ }
hyperlink.addEventListener("lostfocus", onLostFocus);
hyperlink.removeEventListener("lostfocus", onLostFocus);
- or -
hyperlink.onlostfocus = onLostFocus;
Public Custom Event LostFocus As RoutedEventHandler
<Hyperlink LostFocus="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.LostFocus