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
###### Show WPF elements on top of the WebView2 layer (WebView2CompositionControl)
137
-
138
-
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).
143
-
144
-
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 -->
*[ICoreWebView2ExperimentalCompositionController5]<!-- todo: link -->
163
-
<!-- todo: add members of this new partial class, probably #5 -->
164
-
165
-
---
166
-
167
-
168
-
<!-- ---------- -->
169
-
###### Programmatically control Find operations (Find API)
83
+
###### Customize the Find behavior (Find API)
170
84
171
85
The Find API allows you to programmatically control **Find** operations, and enables adding the following functionality to your app:
172
86
* Customize **Find** options, including **Find Term**, **Case Sensitivity**,<!-- todo: actual UI labels -->**Word Matching**, **Match Highlighting**, and **Default UI Suppression**.
@@ -265,7 +179,7 @@ There are known issues with the Find API for PDF documents. When you view a PDF
265
179
266
180
267
181
<!-- ---------- -->
268
-
###### Override the default drag and drop behavior (DragStarting API)
182
+
###### Customize the drag and drop behavior (DragStarting API)
269
183
270
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.
271
185
@@ -331,6 +245,97 @@ The `DragStarting` API overrides the default drag and drop behavior when running
331
245
---
332
246
333
247
248
+
<!-- ---------- -->
249
+
###### Track navigation history for nested iframes (FrameCreatedEvent API)
250
+
251
+
The FrameCreatedEvent API supports nested iframes, such as recording the navigation history for a second-level iframe. Without this API, WebView2 only tracks first-level iframes, which are the direct child iframes of the main frame. Using this API, your app can subscribe to the nested iframe creation event, giving the app access to all properties, methods, and events of `CoreWebView2Frame` for the nested iframe.
252
+
253
+
Use this API to manage iframe tracking on a page that contains multiple levels of iframes. You can choose to track any of the following:
254
+
* Only the main page and first-level iframes (the default behavior).
255
+
* A partial WebView2 frames tree with specific iframes of interest.
###### Show WPF elements on top of the WebView2 layer (WebView2CompositionControl)
284
+
285
+
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).
290
+
291
+
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 -->
0 commit comments