VOOZH about

URL: https://www.nuget.org/packages/VijayAnand.MauiBlazor.Markup/

⇱ NuGet Gallery | VijayAnand.MauiBlazor.Markup 5.0.0




VijayAnand.MauiBlazor.Markup 5.0.0

Prefix Reserved
This package has a SemVer 2.0.0 package version: 5.0.0+sha.2b055bc.
dotnet add package VijayAnand.MauiBlazor.Markup --version 5.0.0
 
 
NuGet\Install-Package VijayAnand.MauiBlazor.Markup -Version 5.0.0
 
 
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="VijayAnand.MauiBlazor.Markup" Version="5.0.0" />
 
 
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="VijayAnand.MauiBlazor.Markup" Version="5.0.0" />
 
Directory.Packages.props
<PackageReference Include="VijayAnand.MauiBlazor.Markup" />
 
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 VijayAnand.MauiBlazor.Markup --version 5.0.0
 
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: VijayAnand.MauiBlazor.Markup, 5.0.0"
 
 
#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 VijayAnand.MauiBlazor.Markup@5.0.0
 
 
#: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=VijayAnand.MauiBlazor.Markup&version=5.0.0
 
Install as a Cake Addin
#tool nuget:?package=VijayAnand.MauiBlazor.Markup&version=5.0.0
 
Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

.NET MAUI Blazor Toolkit

This markup package is a set of fluent helper methods and classes to simplify working with .NET MAUI Blazor in C#.

It depends on the Microsoft.AspNetCore.Components.WebView.Maui NuGet package.

The most useful method will be Configure, which can be invoked on an instance of a BlazorWebView and its derivatives, and it simplifies the initialization of BlazorWebView into a single fluent method call as shown in the below sample.

Note: Gateway is a Razor component and assumes it can receive a parameter named Foo as described in the sample underneath.

namespace MyApp;

public class HomePage : ContentPage
{
 public HomePage()
 {
 // A BlazorWebView can manage multiple RootComponents, to achieve this, define another Tuple with values of that component
 // The method and Tuple parameter names are shown for clarity and it's optional
 // Blazor component can have initialization parameters, which can be supplied through parameters, a dictionary of keyValues
 // where the key is of type string and value is of type object

 // Without initialization parameters
 Content = new BlazorWebView().Configure(hostPage: "wwwroot/index.html", (selector: "#app", componentType: typeof(Gateway), parameters: null));

 // With optional initialization parameters
 Content = new BlazorWebView().Configure(hostPage: "wwwroot/index.html", (selector: "#app", componentType: typeof(Gateway), parameters: new Dictionary<string, object?> { [nameof(Gateway.Foo)] = "Bar" }));

 // In a simplified form - Real intended usage
 // Without initialization parameters
 Content = new BlazorWebView().Configure("wwwroot/index.html", ("#app", typeof(Gateway), null));
 // Much more simplified, assuming hostPage is wwwroot/index.html and selector as #app
 Content = new BlazorWebView().Configure(typeof(Gateway));

 // With StartPath property introduced in .NET 8 or later, overloaded Configure method
 // Assuming search is the page with which the app is intended to start
 Content = new BlazorWebView().Configure("wwwroot/index.html", "/search", ("#app", typeof(Gateway), null));
 // Much more simplified version, assuming hostPage is wwwroot/index.html and selector as #app
 Content = new BlazorWebView().Configure(typeof(Gateway), "/search");

 // With optional initialization parameters
 Content = new BlazorWebView().Configure("wwwroot/index.html", ("#app", typeof(Gateway), new Dictionary<string, object?> { [nameof(Gateway.Foo)] = "Bar" }));
 }
}
@page "/gateway"

<h2>I'm a razor component named Gateway and I can receive a parameter named Foo.</h2>

@code {
 [Parameter]
 public string Foo { get; set; }
}
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. 
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 (1)

Showing the top 1 popular GitHub repositories that depend on VijayAnand.MauiBlazor.Markup:

Repository Stars
egvijayanand/dotnet-maui-samples
Sample apps for working with .NET MAUI
Version Downloads Last Updated
5.0.0 105 11/25/2025
4.0.0 178 11/15/2024
4.0.0-rc.2 123 10/9/2024
4.0.0-rc.1 135 9/11/2024
4.0.0-preview.7 118 8/16/2024
4.0.0-preview.6 133 7/10/2024
4.0.0-preview.5 140 6/12/2024
4.0.0-preview.4 126 5/24/2024
4.0.0-preview.3 153 4/18/2024
4.0.0-preview.2 140 3/17/2024
4.0.0-preview.1 155 2/18/2024
3.0.8 129 7/10/2024
3.0.7 116 6/12/2024
3.0.6 116 5/24/2024
3.0.5 160 4/18/2024
3.0.4 145 4/1/2024
3.0.3 179 3/17/2024
3.0.2 176 2/18/2024
3.0.1 133 1/26/2024
3.0.0 265 11/14/2023
Loading failed

Join me on Developer Thoughts, https://egvijayanand.in/, an exclusive blog for .NET MAUI and Blazor.

What's new in ver. 5.0.0:
-------------------------
Initial release of MAUI Blazor Markup package to support .NET MAUI 10.

This is published on top of .NET MAUI 10 GA (v10.0.0).