Cannot upgrade to WebView2 XAML in Wpf app #3913
Replies: 2 comments
-
@Eilon Any idea here? |
Beta Was this translation helpful? Give feedback.
-
Hi @julianadormon , the Are you trying to use the WPF BlazorWebView to host a Blazor component in your WPF app, or are you specifically trying to use WebView2 to host arbitrary web/HTML content? If you're looking for a WPF BlazorWebView example, you can find that here: https://github.com/dotnet/maui/tree/main/src/BlazorWebView/samples/BlazorWpfApp |
Beta Was this translation helpful? Give feedback.
-
I have a hybrid WPF project which is running a Blazor app from a shared library.
Unfortunately, the XAML examples are lacking and I cannot figure out to upgrade the following code:
Source="wwwroot\index.html" is invalid and there are no "RootComponents" when using the new WebView2.
Is there a way to render the shared app in the WebView2 window? Thanks.
Beta Was this translation helpful? Give feedback.
All reactions