WebView2.NavigationCompleted Событие

Определение

Происходит, когда webView2 полностью загружен (body.onload был вызван) или загрузка остановлена с ошибкой.

Эта документация относится к WinUI 2 для UWP (для WinUI в Windows App SDK см. Windows App SDK пространства имен).

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

Тип события

Применяется к