-
Notifications
You must be signed in to change notification settings - Fork 9.8k
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
Build a BlazorWebView native control for .NET MAUI #29055
Comments
|
Thanks for contacting us. |
|
|
Hi @rogihee our first push towards production will be to focus on Windows using WinUI3 + WebView2 and on macOS using Catalyst + WKWebView. While doing those, we certainly won't block any other scenarios, such as Windows+WPF+WebView2 and we'll want to have support for those via projects such as Mobile Blazor Bindings, which at this time are pre-production quality. |
|
Oh and for this: Will the underlying WebView2 be exposed? I would certainly imagine so. We haven't even begun the final design of this, but I think that exposing WebView2 in some reasonable manner would be quite important for many scenarios. |
|
Hi @Eilon will it support popup dialog window using window.open. Not sure if extra logic will have to be baked into the framework to support this. Just flagging it here. |
|
I think opening popups is done via an event that triggers. It's something we'll have to look at to see the best way to support it. |
|
Will Blazor run in the native (AOT-ed!) runtime? Like in the exp. mobile bindings one runtime for both app and webview2 control in the app? With the memory and performance benefits it would then likely outperform any JavaScript speed in CPU/Memory size (like Steve's experiment showed), making this control a potential Electron killer. That would be something! |
All the app's Blazor code will run in the platform's .NET runtime. So on Windows that means .NET Core 6. On macOS we're trying to figure out if that's Mono or .NET Core. It does not run any .NET code in the WebView - it just does some JS/.NET interop between .NET and the WebView. |
|
The initial work for .NET MAUI for Windows/iOS/macOS/Android is merged into the .NET MAUI repo! dotnet/maui#654 |
|
Closing this because the bulk of the work is done, and no more work should be needed in this repo. There are some remaining work items for preview 4, but they will be done in the https://github.com/dotnet/maui repo. |
This control is going to be supported on Windows and Mac.
This is going to enable hosting Blazor desktop apps natively in WinUI and Catalyst apps.
The text was updated successfully, but these errors were encountered: