How to focus WebView2 in TabControl #686
Labels
bug
Something isn't working
priority-low
We have considered this issue and decided that we will not be able to address it in the near future.
tracked
We are tracking this work internally.
Uh oh!
There was an error while loading. Please reload this page.
I've an application with tabs and in each tab there can be a WebView2 instance. In the WebView2 component of the active tab any random html input element can be currently focused. When i switch between tabs in the TabControl as a user I expect the focus to return to the html element that was previously focused for that tab.
I've made a quick example to show my problem:
https://github.com/frankdekker/WebView2RequestFocusExample
In
MainWindow.xaml.cs
you can see I request focus to the WebView2 of that tab.I'm not quite sure what I should do differently. How should I get the WebView2 focused again?
Thanks in advance. Loving WebView2 so far :)
AB#30938153
The text was updated successfully, but these errors were encountered: