question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add support for hosting Blazor Web components directly in WPF (.NET Core)

See original GitHub issue

To 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:

  1. Factor out much of the hybrid-related code into a new Microsoft.MobileBlazorBindings.Hosting project
  2. Change existing MBB to use the new shared Hosting project
  3. Create a new Microsoft.MobileBlazorBindings.WPF project 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:closed
  • Created 3 years ago
  • Comments:21 (8 by maintainers)

github_iconTop GitHub Comments

3reactions
IvanJosipoviccommented, Mar 1, 2021

@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

2reactions
dcucciacommented, Apr 9, 2021

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/

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found