![]() |
VOOZH | about |
dotnet add package Sharpnado.Maui.Shadows --version 2.0.2
NuGet\Install-Package Sharpnado.Maui.Shadows -Version 2.0.2
<PackageReference Include="Sharpnado.Maui.Shadows" Version="2.0.2" />
<PackageVersion Include="Sharpnado.Maui.Shadows" Version="2.0.2" />Directory.Packages.props
<PackageReference Include="Sharpnado.Maui.Shadows" />Project file
paket add Sharpnado.Maui.Shadows --version 2.0.2
#r "nuget: Sharpnado.Maui.Shadows, 2.0.2"
#:package Sharpnado.Maui.Shadows@2.0.2
#addin nuget:?package=Sharpnado.Maui.Shadows&version=2.0.2Install as a Cake Addin
#tool nuget:?package=Sharpnado.Maui.Shadows&version=2.0.2Install as a Cake Tool
Add beautiful, customizable shadows to any .NET MAUI view across all platforms.
dotnet add package Sharpnado.Maui.Shadows
using Sharpnado.Shades;
builder.UseSharpnadoShadows(loggerEnable: false);
xmlns:sh="clr-namespace:Sharpnado.Shades;assembly=Sharpnado.Maui.Shadows"
<sh:Shadows CornerRadius="10"
Shades="{sh:SingleShade BlurRadius=10, Opacity=0.5, Color=Black, Offset='0,5'}">
<Button Text="Shadow Button" />
</sh:Shadows>
✨ Multiple Shadows - Add as many shadows as needed per view
🎯 Full Control - Color, Opacity, BlurRadius, Offset, CornerRadius
⚡ Hardware Accelerated - GPU rendering on all platforms
🔧 Android BlurType - Choose GPU or StackBlur rendering
🎨 Neumorphism - Built-in neumorphism support
💾 Memory Safe - Weak events, no memory leaks
📦 XAML Extensions - SingleShade, ImmutableShades, ShadeStack, NeumorphismShades
| Platform | Min Version | Implementation |
|---|---|---|
| Android | API 21 | RenderScript/RenderEffect + Caching |
| iOS | 12.2 | CALayer |
| MacCatalyst | 15.0 | CALayer |
| Windows | 10.0.17763.0 | WinUI 3 Composition API |
<sh:Shadows CornerRadius="20"
Shades="{sh:SingleShade BlurRadius=15, Opacity=0.6, Color=Purple, Offset='0,10'}">
<Image Source="photo.jpg" />
</sh:Shadows>
<sh:Shadows CornerRadius="10">
<sh:Shadows.Shades>
<sh:ImmutableShades>
<sh:Shade BlurRadius="10" Opacity="0.5" Offset="-10,-10" Color="White" />
<sh:Shade BlurRadius="10" Opacity="0.5" Offset="10,10" Color="#19000000" />
</sh:ImmutableShades>
</sh:Shadows.Shades>
<Frame BackgroundColor="#F0F0F3" CornerRadius="10">
<Label Text="Neumorphism" />
</Frame>
</sh:Shadows>
<sh:Shadows CornerRadius="20" Shades="{sh:NeumorphismShades}">
<Button Text="Neumorphism" BackgroundColor="#F0F0F3" />
</sh:Shadows>
<sh:Shadows CornerRadius="10"
BlurType="Gpu"
Shades="{sh:SingleShade BlurRadius=20, Opacity=0.7, Color=Black, Offset='0,8'}">
<Image Source="background.jpg" />
</sh:Shadows>
BlurType options:
Gpu (default): Hardware-accelerated (RenderScript API<31, RenderEffect API≥31)StackBlur: CPU-based fallback for compatibilityBlurType="Gpu" for best performance (default)Sharpnado.Shadows → Sharpnado.Maui.Shadowsassembly=Sharpnado.Shadows → assembly=Sharpnado.Maui.Shadowsbuilder.UseSharpnadoShadows()Migration time: ~10 minutes
MIT License - © Jean-Marie Alfonsi
| 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-android35.0 net9.0-android35.0 is compatible. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-ios18.0 net9.0-ios18.0 is compatible. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-maccatalyst18.0 net9.0-maccatalyst18.0 is compatible. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net9.0-windows10.0.19041 net9.0-windows10.0.19041 is compatible. 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. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.
Version 2.0.2 - Windows Content Margin Fix
BUGFIX:
* Fixed Windows (WinUI) platform: Content margin property is now properly applied
* Handler now manually transfers MAUI margin to native platform view
* Resolves issue where Border/Frame margins were ignored in WinUI Grid layout
See documentation: https://github.com/roubachof/Sharpnado.Shadows