AcrylicView.Maui 2.1.3

dotnet add package AcrylicView.Maui --version 2.1.3
                    
NuGet\Install-Package AcrylicView.Maui -Version 2.1.3
                    
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="2.1.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="AcrylicView.Maui" Version="2.1.3" />
                    
Directory.Packages.props
<PackageReference Include="AcrylicView.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 AcrylicView.Maui --version 2.1.3
                    
#r "nuget: AcrylicView.Maui, 2.1.3"
                    
#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@2.1.3
                    
#: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=2.1.3
                    
Install as a Cake Addin
#tool nuget:?package=AcrylicView.Maui&version=2.1.3
                    
Install as a Cake Tool
支持平台/Supported platforms
✔️ Android
✔️ iOS
✔️ macOS
✔️ Windows

NugetPackage:AcrylicView.Maui

231667033-e99ed65b-d74a-4e70-9e89-0958afdc5e45 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 Compatible and additional computed target framework versions.
.NET net8.0-android34.0 is compatible.  net8.0-ios17.2 is compatible.  net8.0-maccatalyst17.2 is compatible.  net8.0-windows10.0.19041 is compatible.  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.

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 (1)

Showing the top 1 popular GitHub repositories that depend on AcrylicView.Maui:

Repository Stars
Strypper/mauisland
MAUIsland 🏝️ is the number 1 controls gallery for .NET MAUI

更改了一些属性默认值