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
However, WebView2 does not appear in the newly created window. How can I properly display it in the newly created window, just like in my main window? I don't want to use multiple WebView2 instances because it increases resource consumption.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have a main window with a WebView2.
<Wpf:WebView2 Source="https://www.bing.com" />
I want to display this window in a newly created window as a VisualBrush.
protected override void OnStartup(StartupEventArgs e)
{
MainWindow MW = new();
MW.Show();
}
However, WebView2 does not appear in the newly created window. How can I properly display it in the newly created window, just like in my main window? I don't want to use multiple WebView2 instances because it increases resource consumption.
Beta Was this translation helpful? Give feedback.
All reactions