WebView.FrameContentLoading 事件

定义

WebView 中的帧开始加载新内容时发生。

// Register
event_token FrameContentLoading(TypedEventHandler<WebView, WebViewContentLoadingEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
WebView::FrameContentLoading_revoker FrameContentLoading(auto_revoke_t, TypedEventHandler<WebView, WebViewContentLoadingEventArgs const&> const& handler) const;
public event TypedEventHandler<WebView,WebViewContentLoadingEventArgs> FrameContentLoading;
function onFrameContentLoading(eventArgs) { /* Your code */ }
webView.addEventListener("framecontentloading", onFrameContentLoading);
webView.removeEventListener("framecontentloading", onFrameContentLoading);
- or -
webView.onframecontentloading = onFrameContentLoading;
Public Custom Event FrameContentLoading As TypedEventHandler(Of WebView, WebViewContentLoadingEventArgs) 
<WebView FrameContentLoading="eventhandler"/>

事件类型

注解

WebView 导航事件按以下顺序发生:

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

适用于