-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Two webviews in one winform won't work #204
Comments
I have observed something similar yesterday - it appears timing related. I could get multiple views on one form only if I put a delay between their creation. |
Thanks for reporting the issue! We'll look into this a get back to you. |
@PaulYBChiang This works for me.
|
We are working on the issue. The problem seems to be the same
|
CoreWebView2CreationProperties() is in Microsoft.Web.WebView2.Wpf. It doesn't seem right to use a class that is part of the WPF part of WebView2 in a WinForms app. Furthermore, CreationProperties() is not in WebView2. WebView2 Version 0.9.628-prerelease
VB .NET IDE gives these errors: for lines 25 and 26
|
We're adding CreationProperties support to Winforms in the next release. In the meantime, you can accomplish the workaround by explicitly creating the environment instead of using the Source property, and specifying the UserDataFolder there: We're currently working on a fix for the underlying issue. |
This should be fixed in WebView2 SDK 1.0.674-prerelease. If this is still failing please let us know. Thanks! |
It's really weird that if I add two webview2s in one WinForm, only one works and the other always sleeping. The code is pretty straight forward.
AB#26584427
The text was updated successfully, but these errors were encountered: