WebViewControl.NavigationStarting 事件

定义

在控件导航到新内容之前触发的事件。

有关详细信息,请参阅 Windows.Web.UI.IWebViewControl

// Register
event_token NavigationStarting(TypedEventHandler<IWebViewControl, WebViewControlNavigationStartingEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
WebViewControl::NavigationStarting_revoker NavigationStarting(auto_revoke_t, TypedEventHandler<IWebViewControl, WebViewControlNavigationStartingEventArgs const&> const& handler) const;
public event TypedEventHandler<IWebViewControl,WebViewControlNavigationStartingEventArgs> NavigationStarting;
function onNavigationStarting(eventArgs) { /* Your code */ }
webViewControl.addEventListener("navigationstarting", onNavigationStarting);
webViewControl.removeEventListener("navigationstarting", onNavigationStarting);
- or -
webViewControl.onnavigationstarting = onNavigationStarting;
Public Custom Event NavigationStarting As TypedEventHandler(Of IWebViewControl, WebViewControlNavigationStartingEventArgs) Implements NavigationStarting

事件类型

实现

适用于