共用方式為


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

事件類型

實作

適用於