Compartir a través de


WebView2.CoreWebView2Ready Event

Definition

This event is triggered when the control's CoreWebView2 has finished being initialized (regardless of how initialization was triggered) but before it is used for anything. You should handle this event if you need to perform one time setup operations on the CoreWebView2 which you want to affect all of its usages (e.g. adding event handlers, configuring settings, installing document creation scripts, adding host objects).

public event EventHandler<EventArgs> CoreWebView2Ready;
member this.CoreWebView2Ready : EventHandler<EventArgs> 
Public Event CoreWebView2Ready As EventHandler(Of EventArgs) 

Event Type

Remarks

This event doesn't provide any arguments, and the sender will be the WebView2 control, whose CoreWebView2 property will now be valid (i.e. non-null) for the first time.

Applies to