VijayAnand.MauiBlazor.Markup
1.0.0-pre7
Prefix Reserved
See the version list below for details.
dotnet add package VijayAnand.MauiBlazor.Markup --version 1.0.0-pre7
NuGet\Install-Package VijayAnand.MauiBlazor.Markup -Version 1.0.0-pre7
<PackageReference Include="VijayAnand.MauiBlazor.Markup" Version="1.0.0-pre7" />
<PackageVersion Include="VijayAnand.MauiBlazor.Markup" Version="1.0.0-pre7" />
<PackageReference Include="VijayAnand.MauiBlazor.Markup" />
paket add VijayAnand.MauiBlazor.Markup --version 1.0.0-pre7
#r "nuget: VijayAnand.MauiBlazor.Markup, 1.0.0-pre7"
#addin nuget:?package=VijayAnand.MauiBlazor.Markup&version=1.0.0-pre7&prerelease
#tool nuget:?package=VijayAnand.MauiBlazor.Markup&version=1.0.0-pre7&prerelease
.NET MAUI Blazor Toolkit
This toolkit a set of fluent helper methods and classes to simplify working with .NET MAUI Blazor in C#.
This toolkit depends on Microsoft.AspNetCore.Components.WebView.Maui NuGet package.
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 thro parameters, a dictionary of keyValues
// where 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 much simplified form - Real intended usage
// Without initialization parameters
Content = new BlazorWebView().Configure("wwwroot/index.html", ("#app", typeof(Gateway), null));
// 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 | net6.0 is compatible. net6.0-android was computed. net6.0-android31.0 is compatible. net6.0-ios was computed. net6.0-ios15.4 is compatible. net6.0-maccatalyst was computed. net6.0-maccatalyst15.4 is compatible. net6.0-macos was computed. net6.0-tizen7.0 is compatible. net6.0-tvos was computed. net6.0-windows was computed. net6.0-windows10.0.19041 is compatible. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. |
-
net6.0
- Microsoft.AspNetCore.Components.WebView.Maui (>= 6.0.300-rc.3.5667)
- Microsoft.Maui.Dependencies (>= 6.0.300-rc.3.5667)
- Microsoft.Maui.Extensions (>= 6.0.300-rc.3.5667)
-
net6.0-android31.0
- Microsoft.AspNetCore.Components.WebView.Maui (>= 6.0.300-rc.3.5667)
- Microsoft.Maui.Dependencies (>= 6.0.300-rc.3.5667)
- Microsoft.Maui.Extensions (>= 6.0.300-rc.3.5667)
-
net6.0-ios15.4
- Microsoft.AspNetCore.Components.WebView.Maui (>= 6.0.300-rc.3.5667)
- Microsoft.Maui.Dependencies (>= 6.0.300-rc.3.5667)
- Microsoft.Maui.Extensions (>= 6.0.300-rc.3.5667)
- System.Runtime.InteropServices.NFloat.Internal (>= 6.0.1)
-
net6.0-maccatalyst15.4
- Microsoft.AspNetCore.Components.WebView.Maui (>= 6.0.300-rc.3.5667)
- Microsoft.Maui.Dependencies (>= 6.0.300-rc.3.5667)
- Microsoft.Maui.Extensions (>= 6.0.300-rc.3.5667)
- System.Runtime.InteropServices.NFloat.Internal (>= 6.0.1)
-
net6.0-tizen7.0
- Microsoft.AspNetCore.Components.WebView.Maui (>= 6.0.300-rc.3.5667)
- Microsoft.Maui.Dependencies (>= 6.0.300-rc.3.5667)
- Microsoft.Maui.Extensions (>= 6.0.300-rc.3.5667)
-
net6.0-windows10.0.19041
- Microsoft.AspNetCore.Components.WebView.Maui (>= 6.0.300-rc.3.5667)
- Microsoft.Maui.Dependencies (>= 6.0.300-rc.3.5667)
- Microsoft.Maui.Extensions (>= 6.0.300-rc.3.5667)
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
.NET MAUI Samples
|
Version | Downloads | Last updated |
---|---|---|
4.0.0 | 62 | 11/15/2024 |
4.0.0-rc.2 | 43 | 10/9/2024 |
4.0.0-rc.1 | 46 | 9/11/2024 |
4.0.0-preview.7 | 57 | 8/16/2024 |
4.0.0-preview.6 | 50 | 7/10/2024 |
4.0.0-preview.5 | 50 | 6/12/2024 |
4.0.0-preview.4 | 64 | 5/24/2024 |
4.0.0-preview.3 | 63 | 4/18/2024 |
4.0.0-preview.2 | 69 | 3/17/2024 |
4.0.0-preview.1 | 79 | 2/18/2024 |
3.0.8 | 67 | 7/10/2024 |
3.0.7 | 56 | 6/12/2024 |
3.0.6 | 65 | 5/24/2024 |
3.0.5 | 83 | 4/18/2024 |
3.0.4 | 87 | 4/1/2024 |
3.0.3 | 89 | 3/17/2024 |
3.0.2 | 84 | 2/18/2024 |
3.0.1 | 80 | 1/26/2024 |
3.0.0 | 203 | 11/14/2023 |
3.0.0-rc.2.2 | 70 | 11/7/2023 |
3.0.0-rc.2.1 | 78 | 10/31/2023 |
3.0.0-rc.2 | 70 | 10/13/2023 |
3.0.0-rc.1 | 87 | 9/18/2023 |
3.0.0-preview.7 | 110 | 8/24/2023 |
3.0.0-preview.6 | 94 | 8/8/2023 |
3.0.0-preview.5 | 112 | 4/13/2023 |
3.0.0-preview.4 | 108 | 3/27/2023 |
3.0.0-preview.3 | 103 | 3/21/2023 |
3.0.0-preview.2 | 97 | 3/17/2023 |
3.0.0-preview.1 | 101 | 2/27/2023 |
2.0.10 | 85 | 11/7/2023 |
2.0.9 | 90 | 10/31/2023 |
2.0.8 | 112 | 10/13/2023 |
2.0.7 | 113 | 8/24/2023 |
2.0.6 | 102 | 8/24/2023 |
2.0.5 | 172 | 4/13/2023 |
2.0.4 | 123 | 3/27/2023 |
2.0.3 | 125 | 2/27/2023 |
2.0.1 | 325 | 12/13/2022 |
2.0.0 | 365 | 11/14/2022 |
1.0.12 | 115 | 8/24/2023 |
1.0.11 | 108 | 3/27/2023 |
1.0.10 | 120 | 2/27/2023 |
1.0.8 | 314 | 12/13/2022 |
1.0.7 | 349 | 11/14/2022 |
1.0.1 | 470 | 6/15/2022 |
1.0.0 | 677 | 5/23/2022 |
1.0.0-pre7 | 165 | 5/11/2022 |
1.0.0-pre6 | 174 | 4/28/2022 |
1.0.0-pre5 | 167 | 4/12/2022 |
1.0.0-pre4 | 162 | 3/18/2022 |
1.0.0-pre3 | 177 | 2/25/2022 |
1.0.0-pre2 | 193 | 1/31/2022 |
1.0.0-pre1 | 153 | 1/31/2022 |
What's new in ver. 1.0.0-pre7:
This version of package is released on top of .NET MAUI RC3, latest release as of May 2022.