共用方式為


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 引進)

適用於