Yu-Core.MauiBlazorToolkit
1.2.7
See the version list below for details.
dotnet add package Yu-Core.MauiBlazorToolkit --version 1.2.7
NuGet\Install-Package Yu-Core.MauiBlazorToolkit -Version 1.2.7
<PackageReference Include="Yu-Core.MauiBlazorToolkit" Version="1.2.7" />
<PackageVersion Include="Yu-Core.MauiBlazorToolkit" Version="1.2.7" />
<PackageReference Include="Yu-Core.MauiBlazorToolkit" />
paket add Yu-Core.MauiBlazorToolkit --version 1.2.7
#r "nuget: Yu-Core.MauiBlazorToolkit, 1.2.7"
#:package Yu-Core.MauiBlazorToolkit@1.2.7
#addin nuget:?package=Yu-Core.MauiBlazorToolkit&version=1.2.7
#tool nuget:?package=Yu-Core.MauiBlazorToolkit&version=1.2.7
MauiBlazorToolkit
English || 简体中文
The Maui Blazor toolbox encapsulates some Maui and Maui Blazor tool classes, such as changing the color of the title bar.
Imitated the .NET MAUI Community Toolkit. Thank you very much.
Start
Install Yu-Core.MauiBlazorToolkit from NuGet
To use the MauiBlazor toolkit, you need to call the extension method in the file, as shown below: MauiProgram.cs
using MauiBlazorToolKit;
public static class MauiProgram
{
public static MauiApp CreateMauiApp()
{
var builder = MauiApp.CreateBuilder();
builder
.UseMauiApp<App>()
// Initialize the MAUI Blazor Toolkit by adding the below line of code
.UseMauiBlazorToolkit()
// After initializing the MAUI Blazor Toolkit, optionally add additional fonts
.ConfigureFonts(fonts =>
{
fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold");
});
// Continue initializing your .NET MAUI App here
return builder.Build();
}
}
TitleBarBehavior (Title Bar Color)
TitleBarBehavior
allows you to customize the color and style of the device's title bar.
Note that it can only be used in Windows and Mac OS. If you want to change the status bar of Android and iOS, please refer to the .NET MAUI Community Toolkit
Configuration
Modify MainPage.xaml
<ContentPage xmlns=" http://schemas.microsoft.com/dotnet/2021/maui "
xmlns:x=" http://schemas.microsoft.com/winfx/2009/xaml "
xmlns:mauiBlazorToolkit="clr-namespace:MauiBlazorToolkit.Behaviors;assembly=MauiBlazorToolkit"
x:Class="MyLittleApp.MainPage">
<ContentPage.Behaviors>
<mauiBlazorToolkit:TitleBarBehavior TitleBarColor="#fff" TitleBarStyle="DarkContent"></mauiBlazorToolkit:TitleBarBehavior>
</ContentPage.Behaviors>
</ContentPage>
Modify MauiProgram.cs
var builder = MauiApp.CreateBuilder();
builder
.UseMauiApp<App>()
.UseMauiBlazorToolkit(options =>
{
options.TitleBar = true;
})
Using
using MauiBlazorToolKit.Platform
#if Windows || MacCatalyst
TitleBar.SetColor(titleBarColor);
TitleBar.SetStyle(TitleBarStyle.DarkContent);
#endif
TitleBar.SetStyle() temporarily invalid, cannot change the text color of the button
AppStoreLauncher (opens the default app store)
AppStoreLauncher
allows you to open the default app store
The appId is the ProductId of the app in Windows
The appId is the bundle ID of the app in iOS/MacCatalyst
The appId is the package name of the app in Android
Using
AppStoreLauncher.TryOpenAsync(appId);
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-android34.0 is compatible. net8.0-browser was computed. net8.0-ios was computed. net8.0-ios17.0 is compatible. net8.0-maccatalyst was computed. net8.0-maccatalyst17.0 is compatible. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net8.0-windows10.0.19041 is compatible. 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.Maui.Controls (>= 8.0.3)
- Microsoft.Maui.Controls.Compatibility (>= 8.0.3)
-
net8.0-android34.0
- Microsoft.Maui.Controls (>= 8.0.3)
- Microsoft.Maui.Controls.Compatibility (>= 8.0.3)
-
net8.0-ios17.0
- Microsoft.Maui.Controls (>= 8.0.3)
- Microsoft.Maui.Controls.Compatibility (>= 8.0.3)
-
net8.0-maccatalyst17.0
- Microsoft.Maui.Controls (>= 8.0.3)
- Microsoft.Maui.Controls.Compatibility (>= 8.0.3)
-
net8.0-windows10.0.19041
- Microsoft.Maui.Controls (>= 8.0.3)
- Microsoft.Maui.Controls.Compatibility (>= 8.0.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on Yu-Core.MauiBlazorToolkit:
Repository | Stars |
---|---|
Yu-Core/SwashbucklerDiary
侠客日记是一个开源、跨平台的本地日记app,使用Blazor开发,支持Android,Windows,macOS,Web,Linux。"SwashbucklerDiary" is an open source cross-platform local diary app using Blazor , support Android,Windows,macOS,Web,Linux.
|
Version | Downloads | Last Updated |
---|---|---|
1.4.6 | 398 | 3/23/2025 |
1.4.5 | 238 | 3/3/2025 |
1.4.3 | 199 | 12/18/2024 |
1.4.2 | 129 | 12/11/2024 |
1.4.0 | 166 | 11/22/2024 |
1.3.9 | 122 | 11/17/2024 |
1.3.6 | 238 | 9/20/2024 |
1.3.5 | 158 | 9/11/2024 |
1.3.1 | 1,662 | 6/1/2024 |
1.3.0 | 254 | 4/5/2024 |
1.2.8 | 327 | 12/8/2023 |
1.2.7 | 179 | 11/19/2023 |
1.2.3 | 576 | 7/7/2023 |
1.2.1 | 217 | 7/4/2023 |
1.2.0 | 239 | 7/4/2023 |
1.0.2 | 329 | 6/13/2023 |
1.0.1 | 253 | 5/22/2023 |
1.0.0 | 229 | 5/22/2023 |