共用方式為


WebView2CompositionControl.WebView2CompositionControl_SizeChanged Method

Definition

This is an event handler for WPF control's SizeChanged event. We use CoreWebView2Controller.NotifyParentWindowPositionChanged to notify our browser our size and relative location has changed.

protected void WebView2CompositionControl_SizeChanged (object sender, System.Windows.SizeChangedEventArgs e);
member this.WebView2CompositionControl_SizeChanged : obj * System.Windows.SizeChangedEventArgs -> unit
Protected Sub WebView2CompositionControl_SizeChanged (sender As Object, e As SizeChangedEventArgs)

Parameters

sender
Object

Applies to