Partilhar via


CoreWebView2.ContentLoading Event

Definition

ContentLoading is raised before any content is loaded, including scripts added with AddScriptToExecuteOnDocumentCreatedAsync(String). ContentLoading is not raised if a same page navigation occurs (such as through fragment navigations or history.pushState navigations).

public event EventHandler<Microsoft.Web.WebView2.Core.CoreWebView2ContentLoadingEventArgs> ContentLoading;
member this.ContentLoading : EventHandler<Microsoft.Web.WebView2.Core.CoreWebView2ContentLoadingEventArgs> 
Public Custom Event ContentLoading As EventHandler(Of CoreWebView2ContentLoadingEventArgs) 

Event Type

Remarks

This operation follows the NavigationStarting and SourceChanged events and precedes the HistoryChanged and NavigationCompleted events.

Applies to

See also