12

Hosting a Blazor Application in WinUI

Blazor is a web framework from Microsoft that allows .NET developers to create C# web applications with little to no JavaScript code. Server-side Blazor applications were introduced with ASP.NET Core 3.0, and ASP.NET Core 3.2 added the ability to create client-side Blazor web apps with WebAssembly (Wasm). Wasm (https://webassembly.org/) allows runtimes such as .NET and Java to run in web applications in the browser, and it is supported by all modern browser engines. By leveraging the WebView2 control in WinUI 3, Windows developers can run a cloud-hosted Blazor application inside their WinUI client application. These options are changing a bit in .NET 8 with the introduction of rendering modes. We’ll discuss ...

Get Learn WinUI 3 - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.