ASP.NET Core in .NET 6 Preview 3 brings a lot of nice features to explore and one of them is the usage of Blazor components inside of desktop, WPF and Win Forms, applications via BlazorWebView control.

Hybrid apps are something that will be supported and emphasized with .NET 6. That will be accomplished using BlazorWebView. Support for building cross-platform hybrid desktop apps means you can write some of the UI parts of an app using web technologies while also leveraging native device capabilities of that platform and OS.

In .NET 6 Preview 3, BlazorWebView control is introduced for WPF and Windows Forms apps. Using BlazorWebView the developer is enabled to embed some of the Blazor functionality inside of the existing Windows desktop app which is based on the .NET 6. This hybrid approach allows the development team to combine existing WPF or Windows Forms desktop apps to modernize them and upgrade them with web-based parts using BlazorWebView embedding while keeping the core functionality and APIs of a desktop app.

In order to start using BlazorWebView controls,  WebView2 Runtime needs to be installed.

#blazor #.net 6 #wpf #.net #winforms #news

.NET 6 Brings Blazor WebView Controls to WPF and WinForms
5.05 GEEK