Share via


WebView2.NavigationCompleted Event

Definition

Occurs when the WebView2 has completely loaded (body.onload has been raised) or loading stopped with error.

This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).

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

Event Type

Applies to