CoreComponentInputSource.LostFocus Événement
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Déclenché lorsqu’un élément XAML hébergé perd le focus.
// Register
event_token LostFocus(TypedEventHandler<IInspectable, CoreWindowEventArgs const&> const& handler) const;
// Revoke with event_token
void LostFocus(event_token const* cookie) const;
// Revoke with event_revoker
CoreComponentInputSource::LostFocus_revoker LostFocus(auto_revoke_t, TypedEventHandler<IInspectable, CoreWindowEventArgs const&> const& handler) const;
public event TypedEventHandler<object,CoreWindowEventArgs> LostFocus;
function onLostFocus(eventArgs) { /* Your code */ }
coreComponentInputSource.addEventListener("lostfocus", onLostFocus);
coreComponentInputSource.removeEventListener("lostfocus", onLostFocus);
- or -
coreComponentInputSource.onlostfocus = onLostFocus;
Public Custom Event LostFocus As TypedEventHandler(Of Object, CoreWindowEventArgs)