共用方式為


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

事件類型

實作

適用於