WebView2.NavigationCompleted Evento

Definizione

Si verifica quando WebView2 è stato caricato completamente (body.onload è stato generato) o il caricamento è stato arrestato con errore.

Questa documentazione si applica a WinUI 2 per UWP (per WinUI nella SDK per app di Windows, vedere gli spazi dei nomi SDK per app di Windows).

// Register
event_token NavigationCompleted(TypedEventHandler<WebView2, CoreWebView2NavigationCompletedEventArgs const&> const& handler) const;

// Revoke with event_token
void NavigationCompleted(event_token const* cookie) const;

// Revoke with event_revoker
WebView2::NavigationCompleted_revoker NavigationCompleted(auto_revoke_t, TypedEventHandler<WebView2, CoreWebView2NavigationCompletedEventArgs const&> const& handler) const;
public event TypedEventHandler<WebView2,CoreWebView2NavigationCompletedEventArgs> NavigationCompleted;
Public Custom Event NavigationCompleted As TypedEventHandler(Of WebView2, CoreWebView2NavigationCompletedEventArgs) 

Tipo evento

Si applica a