VijayAnand.MauiBlazor.Markup
3.0.0-preview.6
Prefix Reserved
See the version list below for details.
dotnet add package VijayAnand.MauiBlazor.Markup --version 3.0.0-preview.6
NuGet\Install-Package VijayAnand.MauiBlazor.Markup -Version 3.0.0-preview.6
<PackageReference Include="VijayAnand.MauiBlazor.Markup" Version="3.0.0-preview.6" />
<PackageVersion Include="VijayAnand.MauiBlazor.Markup" Version="3.0.0-preview.6" />
<PackageReference Include="VijayAnand.MauiBlazor.Markup" />
paket add VijayAnand.MauiBlazor.Markup --version 3.0.0-preview.6
#r "nuget: VijayAnand.MauiBlazor.Markup, 3.0.0-preview.6"
#:package VijayAnand.MauiBlazor.Markup@3.0.0-preview.6
#addin nuget:?package=VijayAnand.MauiBlazor.Markup&version=3.0.0-preview.6&prerelease
#tool nuget:?package=VijayAnand.MauiBlazor.Markup&version=3.0.0-preview.6&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 StartPath property introduced in .NET 8 Preview, 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));
// 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 | net8.0 is compatible. 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. net10.0 was computed. 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. |
-
net8.0
- Microsoft.AspNetCore.Components.WebView.Maui (>= 8.0.0-preview.6.8686)
- Microsoft.Maui.Controls (>= 8.0.0-preview.6.8686)
- Microsoft.Maui.Controls.Compatibility (>= 8.0.0-preview.6.8686)
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 | 93 | 11/15/2024 |
4.0.0-rc.2 | 59 | 10/9/2024 |
4.0.0-rc.1 | 63 | 9/11/2024 |
4.0.0-preview.7 | 71 | 8/16/2024 |
4.0.0-preview.6 | 61 | 7/10/2024 |
4.0.0-preview.5 | 66 | 6/12/2024 |
4.0.0-preview.4 | 72 | 5/24/2024 |
4.0.0-preview.3 | 80 | 4/18/2024 |
4.0.0-preview.2 | 79 | 3/17/2024 |
4.0.0-preview.1 | 90 | 2/18/2024 |
3.0.8 | 76 | 7/10/2024 |
3.0.7 | 64 | 6/12/2024 |
3.0.6 | 72 | 5/24/2024 |
3.0.5 | 99 | 4/18/2024 |
3.0.4 | 93 | 4/1/2024 |
3.0.3 | 109 | 3/17/2024 |
3.0.2 | 98 | 2/18/2024 |
3.0.1 | 84 | 1/26/2024 |
3.0.0 | 217 | 11/14/2023 |
3.0.0-rc.2.2 | 76 | 11/7/2023 |
3.0.0-rc.2.1 | 83 | 10/31/2023 |
3.0.0-rc.2 | 74 | 10/13/2023 |
3.0.0-rc.1 | 101 | 9/18/2023 |
3.0.0-preview.7 | 121 | 8/24/2023 |
3.0.0-preview.6 | 106 | 8/8/2023 |
3.0.0-preview.5 | 123 | 4/13/2023 |
3.0.0-preview.4 | 120 | 3/27/2023 |
3.0.0-preview.3 | 111 | 3/21/2023 |
3.0.0-preview.2 | 105 | 3/17/2023 |
3.0.0-preview.1 | 103 | 2/27/2023 |
2.0.10 | 89 | 11/7/2023 |
2.0.9 | 104 | 10/31/2023 |
2.0.8 | 116 | 10/13/2023 |
2.0.7 | 122 | 8/24/2023 |
2.0.6 | 113 | 8/24/2023 |
2.0.5 | 180 | 4/13/2023 |
2.0.4 | 137 | 3/27/2023 |
2.0.3 | 131 | 2/27/2023 |
2.0.1 | 360 | 12/13/2022 |
2.0.0 | 405 | 11/14/2022 |
1.0.12 | 130 | 8/24/2023 |
1.0.11 | 121 | 3/27/2023 |
1.0.10 | 125 | 2/27/2023 |
1.0.8 | 356 | 12/13/2022 |
1.0.7 | 375 | 11/14/2022 |
1.0.1 | 511 | 6/15/2022 |
1.0.0 | 717 | 5/23/2022 |
1.0.0-pre7 | 216 | 5/11/2022 |
1.0.0-pre6 | 216 | 4/28/2022 |
1.0.0-pre5 | 207 | 4/12/2022 |
1.0.0-pre4 | 202 | 3/18/2022 |
1.0.0-pre3 | 226 | 2/25/2022 |
1.0.0-pre2 | 247 | 1/31/2022 |
1.0.0-pre1 | 196 | 1/31/2022 |
Join me on Developer Thoughts, https://egvijayanand.in/, an exclusive blog for .NET MAUI and Blazor.
What's new in ver. 3.0.0-preview.6:
-----------------------------------
This version of package is released on top of .NET MAUI (ver. 8.0.0-preview.6.8686) on .NET 8 Preview 6.
v3.0.0-preview.5:
This version of package is released on top of .NET MAUI (ver. 8.0.0-preview.3.8149) on .NET 8 Preview 3.
v3.0.0-preview.4:
Added a generic version of Add extension method for the RootComponents collection, inspired from WindowsForms package.
v3.0.0-preview.3:
Support for the StartPath property has been included as a separate Fluent method and in the Configure method overload as well.
v3.0.0-preview.2:
This version of package is released on top of .NET MAUI on .NET 8 Preview 2 (8.0.0-preview.2.7871) version.
v3.0.0-preview.1:
This version of package is released on top of .NET MAUI on .NET 8 Preview 1 (8.0.0-preview.1.7762) version.