Hyperlink.GotFocus 事件
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
發生于 超連結 收到焦點時。
// 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"/>
事件類型
備註
如需詳細資訊,請參閱 UIElement.GotFocus