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
There is a scenario where I need to stack two WebView2 controls on top of each other, and then when user clicks a button, one WebView2 pops up as a new window. Originally I asked the question here
I tried removing the WebView2 from a Grid in the old window and make it as a child to the Grid in the new window, and it seems to be working, except that when interacting with the new window, the old window gets activated and bought to the front of the new window.
My method might be wrong, but doing the same thing with other controls such as a ToggleButton gives expected behavior, and does not activate the previous window.
Describe the bug
There is a scenario where I need to stack two
WebView2
controls on top of each other, and then when user clicks a button, oneWebView2
pops up as a new window. Originally I asked the question hereI tried removing the
WebView2
from aGrid
in the old window and make it as a child to theGrid
in the new window, and it seems to be working, except that when interacting with the new window, the old window gets activated and bought to the front of the new window.My method might be wrong, but doing the same thing with other controls such as a
ToggleButton
gives expected behavior, and does not activate the previous window.Steps to reproduce the bug
MainWindow.xaml
BlankWindow
Expected behavior
The previous window should not get activated.
Screenshots
No response
NuGet package version
WinUI 3 - Windows App SDK 1.5 Experimental 1: 1.5.231202003-experimental1
Windows version
Windows 11 (22H2): Build 22621
Additional context
No response
The text was updated successfully, but these errors were encountered: