AcrylicView.Maui
3.0.0
dotnet add package AcrylicView.Maui --version 3.0.0
NuGet\Install-Package AcrylicView.Maui -Version 3.0.0
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="AcrylicView.Maui" Version="3.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="AcrylicView.Maui" Version="3.0.0" />
<PackageReference Include="AcrylicView.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 AcrylicView.Maui --version 3.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: AcrylicView.Maui, 3.0.0"
#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 AcrylicView.Maui@3.0.0
#: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=AcrylicView.Maui&version=3.0.0
#tool nuget:?package=AcrylicView.Maui&version=3.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
| 支持平台/Supported platforms |
|---|
| ✔️ Android |
| ✔️ iOS |
| ✔️ macOS |
| ✔️ Windows |
温馨提示:在 windows的安卓子系统 中无法正常显示
Tips:Does not work in the Windows subsystem for Android
NugetPackage:AcrylicView.Maui
MauiProgram.cs
using Xe.AcrylicView;
public static class MauiProgram
{
public static MauiApp CreateMauiApp()
{
var builder = MauiApp.CreateBuilder();
builder
.UseMauiApp<App>()
.UseAcrylicView() //********* usage
.ConfigureFonts(fonts =>
{
fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold");
});
return builder.Build();
}
}
}
xmlns:ui="clr-namespace:Xe.AcrylicView;assembly=Xe.AcrylicView"
<ui:AcrylicView VerticalOptions="Center"
HeightRequest="100"
EffectStyle="Custom"
Margin="10"
TintColor="OrangeRed"
TintOpacity=".15 "
BorderColor="OrangeRed"
BorderThickness="1,2"
CornerRadius="50,10,30,20"
>
<Grid>
<Label Text="Hello Word" FontSize="25" HorizontalOptions="Center" VerticalOptions="Center" TextColor="OrangeRed"/>
</Grid>
</ui:AcrylicView>
Android平台的实现方式是从这个仓库获取,从Xamarin.Forms简单移植过来的,请支持原作者: https://github.com/roubachof/Sharpnado.MaterialFrame
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0-android35.0 is compatible. net9.0-ios18.0 is compatible. net9.0-maccatalyst18.0 is compatible. net9.0-windows10.0.26100 is compatible. net10.0-android was computed. net10.0-android36.0 is compatible. net10.0-ios was computed. net10.0-ios26.0 is compatible. net10.0-maccatalyst was computed. net10.0-maccatalyst26.0 is compatible. net10.0-windows was computed. net10.0-windows10.0.26100 is compatible. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0-android36.0
- No dependencies.
-
net10.0-ios26.0
- No dependencies.
-
net10.0-maccatalyst26.0
- No dependencies.
-
net10.0-windows10.0.26100
- No dependencies.
-
net9.0-android35.0
- No dependencies.
-
net9.0-ios18.0
- No dependencies.
-
net9.0-maccatalyst18.0
- No dependencies.
-
net9.0-windows10.0.26100
- No dependencies.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on AcrylicView.Maui:
| Package | Downloads |
|---|---|
|
PlutoFramework
All in one framework for creating web3 mobile applications. |
GitHub repositories (2)
Showing the top 2 popular GitHub repositories that depend on AcrylicView.Maui:
| Repository | Stars |
|---|---|
|
Strypper/mauisland
MAUIsland 🏝️ is the number 1 controls gallery for .NET MAUI
|
|
|
securefolderfs-community/SecureFolderFS
Powerful, secure, modern way to keep your files protected.
|
适配.NET10