VOOZH about

URL: https://www.nuget.org/packages/MudraX.Blazor.Maui/

⇱ NuGet Gallery | MudraX.Blazor.Maui 9.0.0.5




MudraX.Blazor.Maui 9.0.0.5

dotnet add package MudraX.Blazor.Maui --version 9.0.0.5
 
 
NuGet\Install-Package MudraX.Blazor.Maui -Version 9.0.0.5
 
 
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="MudraX.Blazor.Maui" Version="9.0.0.5" />
 
 
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MudraX.Blazor.Maui" Version="9.0.0.5" />
 
Directory.Packages.props
<PackageReference Include="MudraX.Blazor.Maui" />
 
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 MudraX.Blazor.Maui --version 9.0.0.5
 
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: MudraX.Blazor.Maui, 9.0.0.5"
 
 
#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 MudraX.Blazor.Maui@9.0.0.5
 
 
#: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=MudraX.Blazor.Maui&version=9.0.0.5
 
Install as a Cake Addin
#tool nuget:?package=MudraX.Blazor.Maui&version=9.0.0.5
 
Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

MudraX.Blazor.Maui

Introduction

MudraX.Blazor.Maui is a Blazor library designed to simplify the development of Maui applications by providing essential services and components. It supports features like localization, secure storage, and device information retrieval, making it a versatile tool for modern Blazor projects.

Installation

To install the library, use the following NuGet command:

Install-Package MudraX.Blazor.Maui

Configuration

MauiProgram.cs

Add the following code to your MauiProgram.cs file to configure the services:

builder.Services.AddMudraBlazorServices(supportedCultures: ["en-US", "zh-TW"]);
  • supportedCultures: Specifies the cultures supported by the application. Replace "en-US" and "zh-TW" with your desired cultures.

wwwroot/index.html

In your index.html file, set up the localization and routing:

<head>
 <link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap" rel="stylesheet" />
 <link href="_content/MudBlazor/MudBlazor.min.css" rel="stylesheet" />
 <link href="_content/CodeBeam.MudBlazor.Extensions/MudExtensions.min.css" rel="stylesheet" />
 <link href="_content/Gotho.MudBlazor.PdfViewer/mudpdf.min.css" rel="stylesheet" />
 <link href="_content/MudBlazor.Markdown/MudBlazor.Markdown.min.css" rel="stylesheet" />
 <link href="_content/Heron.MudCalendar/Heron.MudCalendar.min.css" rel="stylesheet" />
</head>
<body>
 
 <script src="_content/MudBlazor/MudBlazor.min.js"></script>
 <script src="_content/CodeBeam.MudBlazor.Extensions/MudExtensions.min.js"></script>
 <script src="_content/MudBlazor.Markdown/MudBlazor.Markdown.min.js"></script>
 <script type="module" src="_content/Heron.MudCalendar/Heron.MudCalendar.min.js"></script>
</body>

Imports.razor

Include the necessary namespaces in your Imports.razor file:

@using System.Globalization
@using Microsoft.Extensions.Localization

@using MudBlazor
@using MudBlazor.Services
@using MudBlazor.Extensions
@using MudBlazor.Extensions.Core
@using MudBlazor.Extensions.Options
@using MudExtensions
@using MudBlazorPdf
@using MudExRichTextEditor
@using Heron.MudCalendar

@using MudraX.Blazor.Core.Services
@using MudraX.Blazor.Core.Components
@using MudraX.Blazor.Core.Components.FormFields
@using MudraX.Blazor.Core.Components.Layout
@using MudraX.Blazor.Core.Components.ListViews

@using MudraX.Blazor.Maui
@using MudraX.Blazor.Maui.Components
@using MudraX.Blazor.Maui.Components.Layout
@using MudraX.Blazor.Maui.Services

MainLayout.razor

Set up the main layout of your application by adding the following code to MainLayout.razor:

<ApplicationLayout>
 <ApplcationBar>

 </ApplcationBar>

 <DrawerMenu>

 </DrawerMenu>

 <Body>
 @Body
 </Body>
</ApplicationLayout>

Features

Localization

MudraX.Blazor.Maui provides support for localization using IStringLocalizer. This allows you to retrieve strings from resource files.

Example:
@inject IStringLocalizer<your_resource_file> Localizer

<h1>@Localizer["WelcomeString"]</h1>
  • Replace YourResourceFile with the name of your resource file.
  • Use Localizer["Key"] to retrieve localized strings.

SecureStorage

The ISecureStorage service allows you to securely store and retrieve data.

Example:
@inject ISecureStorage SecureStorage

@SecureStorage.SetItemAsync("key", "value")
@SecureStorage.GetItemAsync("key")
  • Use SetItemAsync to store data securely.
  • Use GetItemAsync to retrieve stored data.

Device Information

The IPlatformFactor service provides information about the device and platform.

Example:
@inject IPlatformFactor PlatformFactor

Platform: @PlatformFactor.GetPlatform()
DeviceIdom: @PlatformFactor.GetDeviceIdom()
  • GetPlatform(): Returns the platform (e.g., Web, Mobile).
  • GetDeviceIdiom(): Returns the device type (e.g., Desktop, Tablet).

Examples

For more detailed examples and use cases, refer to the official documentation or explore the sample projects included in the repository.

Contributing

Contributions are welcome! Please follow the guidelines outlined in the CONTRIBUTING.md file.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Product Versions Compatible and additional computed target framework versions.
.NET net9.0 net9.0 is compatible.  net9.0-android net9.0-android was computed.  net9.0-browser net9.0-browser was computed.  net9.0-ios net9.0-ios was computed.  net9.0-maccatalyst net9.0-maccatalyst was computed.  net9.0-macos net9.0-macos was computed.  net9.0-tvos net9.0-tvos was computed.  net9.0-windows net9.0-windows was computed.  net10.0 net10.0 was computed.  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 (3)

Showing the top 3 NuGet packages that depend on MudraX.Blazor.Maui:

Package Downloads
MudraX.Blazor.Jwt.Maui

MudraX Blazor JWT MAUI Library

MudraX.Blazor.Keycloak.Maui

MudraX Blazor Keycloak MAUI Library

MudraX.Blazor.Maui.Essentials

MudraX Blazor MAUI Essentials Library

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
9.0.0.5 325 11/13/2025
9.0.0.4 268 10/14/2025
9.0.0.3 246 9/10/2025
9.0.0.2 288 5/7/2025
9.0.0.1 229 5/6/2025