WebView.ContentLoading Event
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
// Register
event_token ContentLoading(TypedEventHandler<WebView, WebViewContentLoadingEventArgs const&> const& handler) const;
// Revoke with event_token
void ContentLoading(event_token const* cookie) const;
// Revoke with event_revoker
WebView::ContentLoading_revoker ContentLoading(auto_revoke_t, TypedEventHandler<WebView, WebViewContentLoadingEventArgs const&> const& handler) const;
public event TypedEventHandler<WebView,WebViewContentLoadingEventArgs> ContentLoading;
function onContentLoading(eventArgs) { /* Your code */ }
webView.addEventListener("contentloading", onContentLoading);
webView.removeEventListener("contentloading", onContentLoading);
- or -
webView.oncontentloading = onContentLoading;
Public Custom Event ContentLoading As TypedEventHandler(Of WebView, WebViewContentLoadingEventArgs)
<WebView ContentLoading="eventhandler"/>
WebView navigation events occur in the following order:
- NavigationStarting
- ContentLoading
- DOMContentLoaded
- NavigationCompleted
Similar events occur in the same order for each iframe in the WebView content: