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
+27-24Lines changed: 27 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -135,9 +135,9 @@ This issue stems from the fact that our WPF control uses the WPF HwndHost to hos
135
135
The WebView2Find API allows you to programmatically control **Find** operations, and enables adding the following functionality to your app:
136
136
* Customize **Find** options, similar to **Ctrl+F** in Microsoft Edge.
137
137
* Find text strings and navigate among them within a WebView2 control.
138
-
* Programmatically initiate Find operations, and navigate **Find** results.
138
+
* Programmatically initiate **Find** operations, and navigate **Find** results.
139
139
* Suppress the default **Find** UI.
140
-
* Track the status of Find operations, indicating completion, match count changes, and match index changes.
140
+
* Track the status of **Find** operations, indicating completion, changes of match count, and changes of match index.
141
141
142
142
There are known issues with the WebView2Find API for PDF documents. When you view a PDF document within a WebView2 control, the **Find** feature currently only provides the number of matches found, and the first index.<!-- todo: clarify "index" --> We are actively investigating these issues, and we encourage you to report any problems you encounter, by using the [WebView2Feedback](https://github.com/MicrosoftEdge/WebViewFeedback) repo.
143
143
@@ -231,47 +231,50 @@ There are known issues with the WebView2Find API for PDF documents. When you vi
231
231
<!-- ---------- -->
232
232
###### Override the default drag and drop behavior (DragStarting API)
233
233
234
-
Override the default drag drop behavior when running in visual hosting mode. The `DragStarting` event allows your app to know when a drag is initiated in WebView2, and provides the state that's necessary to override the default WebView2 drag operation with your own logic.
234
+
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.
235
235
236
-
You can use `add_DragStarting`<!-- todo: reword to apply to .NET & WinRT as well --> on the `CompositionController` to add an event handler that's invoked when the drag operation is starting. You can use the event args to start your own drag operation. The `Deferral` can be used to execute any async drag logic and call back into the WebView at a later time. The `Handled` property lets the WebView2 know whether to exercise its own drag logic.
236
+
* Use `DragStarting` on the `CoreWebView2CompositionController` to add an event handler that's invoked when the drag operation is starting.
237
+
* Use `CoreWebView2DragStartingEventArgs` to start your own drag operation.
238
+
* Use the `GetDeferral` method to execute any async drag logic and call back into the WebView at a later time.
239
+
* Use the `Handled` property to let the WebView2 know whether to use its own drag logic.
237
240
238
241
##### [.NET/C#](#tab/dotnetcsharp)
239
242
240
243
<!-- todo -->
241
244
242
245
These APIs are forthcoming.
243
246
244
-
*`CoreWebView2ExperimentalCompositionController` Class
0 commit comments