![]() |
VOOZH | about |
dotnet add package Soenneker.Maui.Blazor.Bridge --version 4.0.633
NuGet\Install-Package Soenneker.Maui.Blazor.Bridge -Version 4.0.633
<PackageReference Include="Soenneker.Maui.Blazor.Bridge" Version="4.0.633" />
<PackageVersion Include="Soenneker.Maui.Blazor.Bridge" Version="4.0.633" />Directory.Packages.props
<PackageReference Include="Soenneker.Maui.Blazor.Bridge" />Project file
paket add Soenneker.Maui.Blazor.Bridge --version 4.0.633
#r "nuget: Soenneker.Maui.Blazor.Bridge, 4.0.633"
#:package Soenneker.Maui.Blazor.Bridge@4.0.633
#addin nuget:?package=Soenneker.Maui.Blazor.Bridge&version=4.0.633Install as a Cake Addin
#tool nuget:?package=Soenneker.Maui.Blazor.Bridge&version=4.0.633Install as a Cake Tool
👁 alternate text is missing from this package README image
👁 alternate text is missing from this package README image
👁 alternate text is missing from this package README image
👁 alternate text is missing from this package README image
Install the package via NuGet:
dotnet add package Soenneker.Maui.Blazor.Bridge
Register the interop in CreateMauiApp:
public static MauiApp CreateMauiApp()
{
var builder = MauiApp.CreateBuilder();
builder.Services.AddMauiBlazorBridgeAsScoped();
}
To integrate MAUI components within BlazorWebView, modify your MainPage.xaml.
Wrap the BlazorWebView inside a Grid, and include an AbsoluteLayout (OverlayContainer) to host native elements:
<Grid>
<BlazorWebView x:Name="blazorWebView"
HostPage="wwwroot/index.html">
<BlazorWebView.RootComponents>
<RootComponent Selector="#app" ComponentType="{x:Type local:Routes}" />
</BlazorWebView.RootComponents>
</BlazorWebView>
<AbsoluteLayout x:Name="OverlayContainer" BackgroundColor="Transparent" InputTransparent="True" />
</Grid>
This setup ensures that MAUI-native elements overlay correctly within your BlazorWebView.
To bridge MAUI elements into Blazor, use either:
MauiBlazorTypedBridge<T> (Typed binding)MauiBlazorGenericBridge (Generic binding)MauiLabel in Blazor@page "/"
@implements IAsyncDisposable
<MauiBlazorTypedBridge @ref="_bridge" TComponent="MauiLabel" Component="_label"></MauiBlazorTypedBridge>
@code {
MauiLabel? _label;
MauiBlazorTypedBridge<MauiLabel>? _bridge;
protected override void OnInitialized()
{
_label = new MauiLabel
{
Text = "This is a MAUI Label",
BackgroundColor = Colors.Transparent,
TextColor = Colors.Black
};
}
public async ValueTask DisposeAsync()
{
if (_bridge != null)
await _bridge.DisposeAsync();
}
}
This example adds a MauiLabel component inside a Blazor page, allowing it to function within the BlazorWebView.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.0.633 | 0 | 6/19/2026 |
| 4.0.632 | 0 | 6/18/2026 |
| 4.0.631 | 47 | 6/18/2026 |
| 4.0.630 | 69 | 6/18/2026 |
| 4.0.629 | 68 | 6/17/2026 |
| 4.0.628 | 93 | 6/17/2026 |
| 4.0.627 | 83 | 6/17/2026 |
| 4.0.626 | 88 | 6/16/2026 |
| 4.0.625 | 91 | 6/15/2026 |
| 4.0.624 | 95 | 6/15/2026 |
| 4.0.623 | 93 | 6/14/2026 |
| 4.0.622 | 91 | 6/14/2026 |
| 4.0.621 | 93 | 6/14/2026 |
| 4.0.620 | 93 | 6/12/2026 |
| 4.0.619 | 94 | 6/12/2026 |
| 4.0.618 | 91 | 6/12/2026 |
| 4.0.617 | 93 | 6/11/2026 |
| 4.0.616 | 90 | 6/11/2026 |
| 4.0.615 | 89 | 6/10/2026 |
| 4.0.614 | 99 | 6/10/2026 |
Update dependency Soenneker.Blazor.CallbackRegistry to 4.0.898 (#1064)