CoreWebView2.NavigationStarting Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
NavigationStarting is raised when the WebView main frame is requesting permission to navigate to a different URI.
public event EventHandler<Microsoft.Web.WebView2.Core.CoreWebView2NavigationStartingEventArgs> NavigationStarting;
member this.NavigationStarting : EventHandler<Microsoft.Web.WebView2.Core.CoreWebView2NavigationStartingEventArgs>
Public Custom Event NavigationStarting As EventHandler(Of CoreWebView2NavigationStartingEventArgs)
Event Type
Examples
Remarks
Redirects raise this event as well, and the navigation id is the same as the original one. You may block corresponding navigations until the event handler returns.