JiuLing.Controls.Maui
0.0.14
dotnet add package JiuLing.Controls.Maui --version 0.0.14
NuGet\Install-Package JiuLing.Controls.Maui -Version 0.0.14
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="JiuLing.Controls.Maui" Version="0.0.14" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="JiuLing.Controls.Maui" Version="0.0.14" />
<PackageReference Include="JiuLing.Controls.Maui" />
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 JiuLing.Controls.Maui --version 0.0.14
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: JiuLing.Controls.Maui, 0.0.14"
#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 JiuLing.Controls.Maui@0.0.14
#: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=JiuLing.Controls.Maui&version=0.0.14
#tool nuget:?package=JiuLing.Controls.Maui&version=0.0.14
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
JiuLing.Controls.Maui
一个MAUI下的控件库
组件列表
<table>
<tr>
<td>组件名</td>
<td>说明</td>
<td>Windows</td>
<td>Android</td>
<td>iOS</td>
<td>MacCatalyst</td>
</tr>
<tr>
<td>TextSwitch</td>
<td>带文本的开关</td>
<td>✔️</td>
<td>✔️</td>
<td>✔️</td>
<td>✔️</td>
</tr>
<tr>
<td>GaussianImage</td>
<td>图像高斯模糊</td>
<td>✔️</td>
<td>✔️</td>
<td>❌</td>
<td>❌</td>
</tr>
</table>
使用
TextSwitch 带文本的开关
针对不同平台定义开关的展示方式,使得布局更加合理。
UWP和macOS平台采用开关居左,文本描述居右的布局。
Android和iOS平台采用文本描述居左,开关居右的布局。
//导入命名控件
xmlns:JiuLing="clr-namespace:JiuLing.Controls.Maui.Controls;assembly=JiuLing.Controls.Maui"
//创建组件
<JiuLing:TextSwitch Text="深色主题" IsToggled="{Binding IsDarkMode}">
GaussianImage 图像高斯模糊
//注册组件
var builder = MauiApp.CreateBuilder();
builder.UseJiuLingControls();
//导入命名控件
xmlns:JiuLing="clr-namespace:JiuLing.Controls.Maui.Handlers.GaussianImage;assembly=JiuLing.Controls.Maui"
//创建组件
<JiuLing:GaussianImage Url="{Binding CurrentMusic.ImageUrl}"/>
License
本项目基于MIT License
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net6.0-android31.0 is compatible. net6.0-ios15.4 is compatible. net6.0-maccatalyst15.4 is compatible. net6.0-windows10.0.19041 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-windows was computed. net8.0-android was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-windows was computed. net9.0-android was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-windows was computed. net10.0-android was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net6.0-android31.0
- No dependencies.
-
net6.0-ios15.4
-
net6.0-maccatalyst15.4
-
net6.0-windows10.0.19041
- System.Drawing.Common (>= 6.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.