WebView.ContentLoading 事件

定义

WebView 已开始加载新内容时发生。

// 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 导航事件按以下顺序发生:

对于 WebView 内容中的每个 iframe,类似事件按相同的顺序发生:

适用于