Freigeben über


WebView2CompositionControl.CoreWebView2InitializationCompleted Event

Definition

This event is triggered either

  1. when the control's CoreWebView2 has finished being initialized (regardless of how initialization was triggered) but before it is used for anything, or
  2. if the initialization failed. 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). See the WebView2 class documentation for an initialization overview.
public event EventHandler<Microsoft.Web.WebView2.Core.CoreWebView2InitializationCompletedEventArgs> CoreWebView2InitializationCompleted;
member this.CoreWebView2InitializationCompleted : EventHandler<Microsoft.Web.WebView2.Core.CoreWebView2InitializationCompletedEventArgs> 
Public Custom Event CoreWebView2InitializationCompleted As EventHandler(Of CoreWebView2InitializationCompletedEventArgs) 

Event Type

Implements

Applies to