Soenneker.Maui.Blazor.Bridge 4.0.579

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Soenneker.Maui.Blazor.Bridge --version 4.0.579
                    
NuGet\Install-Package Soenneker.Maui.Blazor.Bridge -Version 4.0.579
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Soenneker.Maui.Blazor.Bridge" Version="4.0.579" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Maui.Blazor.Bridge" Version="4.0.579" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Maui.Blazor.Bridge" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Soenneker.Maui.Blazor.Bridge --version 4.0.579
                    
#r "nuget: Soenneker.Maui.Blazor.Bridge, 4.0.579"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Soenneker.Maui.Blazor.Bridge@4.0.579
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Soenneker.Maui.Blazor.Bridge&version=4.0.579
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Maui.Blazor.Bridge&version=4.0.579
                    
Install as a Cake Tool

alternate text is missing from this package README image Soenneker.Maui.Blazor.Bridge

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

Effortlessly integrate MAUI components within BlazorWebView, enabling seamless interaction between Blazor and native MAUI UI elements.


Features

  • Embed MAUI components directly inside BlazorWebView like HTML elements.
  • Maintain a structured overlay system for native elements.
  • Provides typed and generic bridges for flexible component integration.

Installation

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();
}

Layout Setup

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.


Usage

To bridge MAUI elements into Blazor, use either:

  • MauiBlazorTypedBridge<T> (Typed binding)
  • MauiBlazorGenericBridge (Generic binding)

Example: Embedding a 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 Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
4.0.587 0 5/26/2026
4.0.586 0 5/26/2026
4.0.585 35 5/24/2026
4.0.584 38 5/23/2026
4.0.583 40 5/23/2026
4.0.582 42 5/22/2026
4.0.581 41 5/21/2026
4.0.580 75 5/20/2026
4.0.579 76 5/20/2026
4.0.578 78 5/19/2026
4.0.577 77 5/19/2026
4.0.576 78 5/19/2026
4.0.575 94 5/18/2026
4.0.574 93 5/18/2026
4.0.573 90 5/14/2026
4.0.572 90 5/14/2026
4.0.571 86 5/14/2026
4.0.570 86 5/14/2026
4.0.569 84 5/14/2026
4.0.568 85 5/13/2026
Loading failed

Update dependency Soenneker.Blazor.CallbackRegistry to 4.0.779 (#964)