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.
Use Blazor Hybrid to blend desktop and mobile native client frameworks with .NET and Blazor.
In a Blazor Hybrid app, Razor components run natively on the device. Components render to an embedded Web View control through a local interop channel. Components don't run in the browser, and WebAssembly isn't involved. Razor components load and execute code quickly, and components have full access to the native capabilities of the device through the .NET platform.
Blazor Hybrid articles cover subjects pertaining to integrating Razor components into native client frameworks.
Blazor Hybrid apps with .NET MAUI
Blazor Hybrid support is built into the .NET Multi-platform App UI (.NET MAUI) framework. .NET MAUI includes the
BlazorWebView control that permits rendering Razor components into an embedded Web View. By using .NET MAUI and Blazor together, you can reuse one set of web UI components across mobile, desktop, and web.
Blazor Hybrid apps with WPF and Windows Forms
Blazor Hybrid apps can be built with Windows Presentation Foundation (WPF) and Windows Forms. Blazor provides
BlazorWebView controls for both of these frameworks. Razor components run natively in the Windows desktop and render to an embedded Web View. Using Blazor in WPF and Windows Forms enables you to add new UI to your existing Windows desktop apps that can be reused across platforms with .NET MAUI or on the web.
Web View configuration
Blazor Hybrid exposes the underlying Web View configuration for different platforms through events of the
BlazorWebViewInitializingprovides access to the settings used to create the Web View on each platform, if settings are available.
BlazorWebViewInitializedprovides access to the Web View to allow further configuration of the settings.
Use the preferred patterns on each platform to attach event handlers to the events to execute your custom code.
Submit and view feedback for