共用方式為


Hyperlink.LostFocus 事件

定義

發生于 超連結 失去焦點時。

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

事件類型

Windows 需求

裝置系列
Windows 10 Creators Update (已於 10.0.15063.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v4.0 引進)

備註

如需詳細資訊,請參閱 UIElement.LostFocus

適用於

另請參閱