You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: microsoft-edge/webview2/release-notes/index.md
+11-85Lines changed: 11 additions & 85 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -183,44 +183,18 @@ There are known issues with the Find API for PDF documents. When you view a PDF
183
183
184
184
The `DragStarting` API overrides the default drag and drop behavior when running in visual hosting mode. The `DragStarting` event notifies your app when the user starts a drag operation in the WebView2, and provides the state that's necessary to override the default WebView2 drag operation with your own logic.
185
185
186
-
* Use `DragStarting` on the `CoreWebView2CompositionController` to add an event handler that's invoked when the drag operation is starting.
187
-
* Use `CoreWebView2DragStartingEventArgs` to start your own drag operation.
186
+
* Use `DragStarting` on the `ICoreWebView2ExperimentalCompositionController6` to add an event handler that's invoked when the drag operation is starting.
187
+
* Use `ICoreWebView2ExperimentalDragStartingEventArgs` to start your own drag operation.
188
188
* Use the `GetDeferral` method to execute any async drag logic and call back into the WebView at a later time.
189
189
* Use the `Handled` property to let the WebView2 know whether to use its own drag logic.
<!-- todo: 1st occurrence of this section within the Jan Prerelease section -->
283
-
<!-- ---------- -->
284
-
###### Show WPF elements on top of the WebView2 layer (WebView2CompositionControl)
285
-
286
-
The `WebView2CompositionControl` prevents the WebView2 control from being the topmost layer in a WPF app and obscuring any WPF elements. `Microsoft.Web.WebView2.Wpf.WebView2CompositionControl` is a drop-in replacement for the standard WPF WebView2 control. Both the WebView2 control and `WebView2CompositionControl` implement the `Microsoft.Web.WebView2.Wpf.IWebView2` interface. Both of them derive from `FrameworkElement`, as follows:
Background: If you're building a Windows Presentation Foundation (WPF) app and using the WebView2 control, you may find that your app runs into "airspace" issues, where the WebView2 control is always displayed on top, hiding any WPF elements in the same location, even if you try to specify the WPF elements to be above the WebView2 control (using visual tree order or the z-index property, for example).
291
-
292
-
This issue occurs because the WPF control uses the WPF `HwndHost` to host the Win32 WebView2 control, and `HwndHost` has an issue with airspace; see [Mitigating Airspace Issues In WPF Applications](https://dwayneneed.github.io/wpf/2013/02/26/mitigating-airspace-issues-in-wpf-applications.html).
*[CoreWebView2 Class](/microsoft-edge/webview2/reference/winrt/microsoft_web_webview2_core/corewebview2?view=webview2-winrt-1.0.3079-prerelease&preserve-view=true)<!-- todo: delete link to large old class -->
###### Load a WebView2 without a white flash (DefaultBackgroundColor API)
254
+
###### Set default background color on WebView2 initialization (DefaultBackgroundColor API)
321
255
322
-
Prevents a white flash during loading a WebView2.
256
+
The DefaultBackgroundColor API allows users to set the `DefaultBackgroundColor` property at initialization. This prevents a disruptive white flash during the WebView2 loading process.
323
257
324
258
##### [.NET/C#](#tab/dotnetcsharp)
325
259
@@ -346,7 +280,6 @@ Prevents a white flash during loading a WebView2.
346
280
The following APIs have been promoted from Experimental to Stable in this Prerelease SDK.
347
281
348
282
349
-
<!-- todo: 2nd occurrence of this section within the Jan Prerelease section -->
350
283
<!-- ---------- -->
351
284
###### Show WPF elements on top of the WebView2 layer (WebView2CompositionControl)
*[CoreWebView2 Class](/microsoft-edge/webview2/reference/winrt/microsoft_web_webview2_core/corewebview2?view=webview2-winrt-1.0.3079-prerelease&preserve-view=true)<!-- todo: delete link to large old class -->
0 commit comments