WebUIApplication.NewWebUIViewCreated 事件

定义

当系统为应用创建新视图时发生。

// Register
static event_token NewWebUIViewCreated(EventHandler<NewWebUIViewCreatedEventArgs> const& handler) const;

// Revoke with event_token
static void NewWebUIViewCreated(event_token const* cookie) const;

// Revoke with event_revoker
static WebUIApplication::NewWebUIViewCreated_revoker NewWebUIViewCreated(auto_revoke_t, EventHandler<NewWebUIViewCreatedEventArgs> const& handler) const;
public static event System.EventHandler<NewWebUIViewCreatedEventArgs> NewWebUIViewCreated;
function onNewWebUIViewCreated(eventArgs) { /* Your code */ }
Windows.UI.WebUI.WebUIApplication.addEventListener("newwebuiviewcreated", onNewWebUIViewCreated);
Windows.UI.WebUI.WebUIApplication.removeEventListener("newwebuiviewcreated", onNewWebUIViewCreated);
- or -
Windows.UI.WebUI.WebUIApplication.onnewwebuiviewcreated = onNewWebUIViewCreated;
Public Shared Custom Event NewWebUIViewCreated As EventHandler(Of NewWebUIViewCreatedEventArgs) 

事件类型

Windows 要求

设备系列
Windows 10, version 1809 (在 10.0.17763.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v7.0 中引入)

适用于