AcrylicView.Maui
2.0.0
旧版存在性能问题,和一些bug,请及时更新,使用2.0.1或更高版本
See the version list below for details.
dotnet add package AcrylicView.Maui --version 2.0.0
NuGet\Install-Package AcrylicView.Maui -Version 2.0.0
<PackageReference Include="AcrylicView.Maui" Version="2.0.0" />
<PackageVersion Include="AcrylicView.Maui" Version="2.0.0" />
<PackageReference Include="AcrylicView.Maui" />
paket add AcrylicView.Maui --version 2.0.0
#r "nuget: AcrylicView.Maui, 2.0.0"
#:package AcrylicView.Maui@2.0.0
#addin nuget:?package=AcrylicView.Maui&version=2.0.0
#tool nuget:?package=AcrylicView.Maui&version=2.0.0
支持平台/Supported platforms |
---|
✔️ Android |
✔️ iOS |
✔️ macOS |
✔️ Windows |
NugetPackage:AcrylicView.Maui
MauiProgram.cs
using Xe.AcrylicView;
public static class MauiProgram
{
public static MauiApp CreateMauiApp()
{
var builder = MauiApp.CreateBuilder();
builder
.UseMauiApp<App>()
.UseAcrylicView() //********* Use
.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"
AndroidPerfect="True">
<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
⚠️注意!Warning!
AndroidPerfect="True"
启用此项会完美显示,不会泛光,同时将会影响系统性能,因为会不停地对区域进行监听绘制,仅对安卓系统生效,其他系统无需理会,区别如下图:
OnlyAndroid,Enabling this option will affect system performance.
左图/Left:AndroidPerfect="Flase", 右图/Right:AndroidPerfect="True"
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0-android31.0 is compatible. net6.0-ios16.1 is compatible. net6.0-maccatalyst16.1 is compatible. net6.0-windows10.0.19041 is compatible. net7.0-android was computed. net7.0-android33.0 is compatible. net7.0-ios was computed. net7.0-ios16.1 is compatible. net7.0-maccatalyst was computed. net7.0-maccatalyst16.1 is compatible. 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. |
-
net6.0-android31.0
- No dependencies.
-
net6.0-ios16.1
-
net6.0-maccatalyst16.1
-
net6.0-windows10.0.19041
- No dependencies.
-
net7.0-android33.0
- No dependencies.
-
net7.0-ios16.1
- No dependencies.
-
net7.0-maccatalyst16.1
- 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 |
---|---|
securefolderfs-community/SecureFolderFS
Powerful, secure, modern way to keep your files protected.
|
|
Strypper/mauisland
MAUIsland 🏝️ is the number 1 controls gallery for .NET MAUI
|