Add support for hosting Blazor Web components directly in WPF (.NET Core)
See original GitHub issueTo simplify some common scenarios we should add support for directly hosting Blazor Web components in WPF (.NET Core) applications. This would use Edge WebView2 directly but still re-use many of the same APIs and patterns used elsewhere in Mobile Blazor Bindings.
The work is to:
- Factor out much of the hybrid-related code into a new
Microsoft.MobileBlazorBindings.Hostingproject - Change existing MBB to use the new shared Hosting project
- Create a new
Microsoft.MobileBlazorBindings.WPFproject that uses WebView2 and the shared Hosting logic
Ideally this wouldn’t change or break any existing MBB applications because all the old APIs should still exist. But there could be a namespace change here or there. We’ll see, but not a big deal.
Issue Analytics
- State:
- Created 3 years ago
- Comments:21 (8 by maintainers)
Top Results From Across the Web
Add support for hosting Blazor Web components directly in ...
To simplify some common scenarios we should add support for directly hosting Blazor Web components in WPF (.NET Core) applications.
Read more >ASP.NET Core Blazor hosting models
Blazor is a web framework for building web UI components (Razor components) that can be hosted in different ways. Razor components can run ......
Read more >ASP.NET Core Blazor Hybrid
This article explains ASP.NET Core Blazor Hybrid, a way to build interactive client-side web UI with .NET in an ASP.NET Core app.
Read more >Blazor on WPF
With Blazor, developers get to build modern web apps with C#/.NET, running on server or fully client-side through WebAssembly. But could Blazor ......
Read more >How to Integrate Blazor WASM into Existing ASP.NET Core ...
See how to integrate a Blazor WebAssembly project into an existing ASP.NET Core web application, using familiar C# code files and Razor ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@Jinjinov, its only available in the nightly feed at the moment.
See here, https://docs.microsoft.com/en-us/mobile-blazor-bindings/contribute/nightly-builds
For those that land here looking for the latest on the WPF and WinForms BlazorWebView, it arrived today with .NET 6.0 Preview 3:
https://devblogs.microsoft.com/aspnet/asp-net-core-updates-in-net-6-preview-3/