WebUIApplication.NewWebUIViewCreated Event

Definition

Occurs when the system creates a new view for the app.

// 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) 

Event Type

Windows requirements

Device family
Windows 10, version 1809 (introduced in 10.0.17763.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v7.0)

Applies to