Hyperlink.GotFocus イベント

定義

ハイパーリンクがフォーカスを受け取ったときに発生します。

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

イベントの種類

Windows の要件

デバイス ファミリ
Windows 10 Creators Update (10.0.15063.0 で導入)
API contract
Windows.Foundation.UniversalApiContract (v4.0 で導入)

注釈

詳細については、「UIElement.GotFocus」を参照してください。

適用対象

こちらもご覧ください