Share via


WebView2.OnWindowPositionChanged(Rect) Method

Definition

This is overridden from HwndHost and called when our control's ___location has changed. The HwndHost takes care of updating the HWND we created. What we need to do is move our CoreWebView2 to match the new ___location.

protected override void OnWindowPositionChanged(System.Windows.Rect rcBoundingBox);
override this.OnWindowPositionChanged : System.Windows.Rect -> unit
Protected Overrides Sub OnWindowPositionChanged (rcBoundingBox As Rect)

Parameters

rcBoundingBox
Rect

Applies to