WebViewControl.NewWindowRequested 事件

定义

当用户在 控件中执行导致内容在新窗口中打开的操作时触发的事件。

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

// Register
event_token NewWindowRequested(TypedEventHandler<IWebViewControl, WebViewControlNewWindowRequestedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
WebViewControl::NewWindowRequested_revoker NewWindowRequested(auto_revoke_t, TypedEventHandler<IWebViewControl, WebViewControlNewWindowRequestedEventArgs const&> const& handler) const;
public event TypedEventHandler<IWebViewControl,WebViewControlNewWindowRequestedEventArgs> NewWindowRequested;
function onNewWindowRequested(eventArgs) { /* Your code */ }
webViewControl.addEventListener("newwindowrequested", onNewWindowRequested);
webViewControl.removeEventListener("newwindowrequested", onNewWindowRequested);
- or -
webViewControl.onnewwindowrequested = onNewWindowRequested;
Public Custom Event NewWindowRequested As TypedEventHandler(Of IWebViewControl, WebViewControlNewWindowRequestedEventArgs) Implements NewWindowRequested

事件类型

实现

适用于