@@ -6,10 +6,11 @@ Get it from NuGet:
66
77[ ![ Nuget] ( https://img.shields.io/nuget/v/Sharpnado.Shadows.svg )] ( https://www.nuget.org/packages/Sharpnado.Shadows )
88
9- Supported platforms:
10- * Android
11- * iOS
12- * UWP
9+ | Supported platforms |
10+ | ----------------------------|
11+ | :heavy_check_mark : Android |
12+ | :heavy_check_mark : iOS |
13+ | :heavy_check_mark : UWP |
1314
1415![ Presentation] ( Docs/tablet.png )
1516
@@ -27,16 +28,15 @@ Add as **many** **custom** shadows as you like to any `Xamarin.Forms` view (`And
2728* Simply implement ` Neumorphism `
2829* You can add one shadow, 3 shadows, 99 shadows, to any ` Xamarin.Forms ` element
2930* Animate any of these property and make the shadows dance around your elements
31+ * No ` AndroidX ` or ` SkiaSharp ` dependency required, only ` Xamarin.Forms `
3032
3133## Using Shadows
3234
3335` Shadows ` is a container for any ` Xamarin.Forms ` view.
3436Just wrap your view in it and start adding shadows:
3537
36- <table >
37- <tbody>
38- <tr>
39- <td>
38+ ** XAML**
39+
4040``` xml
4141<sh : Shadows x : Name =" CatShadows"
4242 CornerRadius =" 10" >
@@ -62,21 +62,16 @@ Just wrap your view in it and start adding shadows:
6262 </Frame >
6363</sh : Shadows >
6464```
65- </td >
66- <td>
67- ![ cat] ( Docs/cat_shadows.png )
68- </td >
69- </tr>
70- </tbody >
71- </table >
65+
66+ ** OUTPUT**
67+
68+ <img src =" Docs/cat_shadows.png " height =" 180 " />
7269
7370Thanks to the ` CornerRadius ` property you can match your target corner to achieve a perfect shadow.
7471For example, you can add a shadow to a rounded button:
7572
76- <table >
77- <tbody>
78- <tr>
79- <td>
73+ ** XAML**
74+
8075``` xml
8176<sh : Shadows CornerRadius =" 30"
8277 Shades =" {sh:SingleShade Offset='0, 10',
@@ -92,13 +87,10 @@ For example, you can add a shadow to a rounded button:
9287 Source =" {StaticResource IconPlusWhite}" />
9388</sh : Shadows >
9489```
95- </td >
96- <td>
97- ![ cat] ( Docs/rounded_button.png )
98- </td >
99- </tr>
100- </tbody >
101- </table >
90+
91+ ** OUTPUT**
92+
93+ <img src =" Docs/rounded_button.png " height =" 180 " />
10294
10395### Shades
10496
@@ -116,12 +108,8 @@ Each shade has 4 properties:
1161083 . ` double Opacity ` : the opacity of the shade
1171094 . ` double BlurRadius ` : the amount of blur your want for this shade
118110
119- ` Logo.xaml `
111+ ** Logo.xaml**
120112
121- <table >
122- <tbody>
123- <tr>
124- <td>
125113``` xml
126114<?xml version =" 1.0" encoding =" UTF-8" ?>
127115<sh : Shadows x : Class =" ShadowsSample.Views.Logo"
@@ -166,13 +154,10 @@ Each shade has 4 properties:
166154 Text =" Shadows" />
167155</sh : Shadows >
168156```
169- </td >
170- <td>
171- ![ Logo] ( Docs/logo.png )
172- </td >
173- </tr>
174- </tbody >
175- </table >
157+
158+ ** OUTPUT**
159+
160+ <img src =" Docs/logo.png " height =" 180 " />
176161
177162### Neumorphism
178163
@@ -201,10 +186,8 @@ Since `Neumorphism` implementation is made of 2 shadows, one bright at the top l
201186
202187If you want to add ` Neumorphism ` to specific elements a ` NeumorphismShades ` markup extension will help you with that:
203188
204- <table >
205- <tbody>
206- <tr>
207- <td>
189+ ** XAML**
190+
208191``` xml
209192<sh : Shadows Grid.Row=" 1"
210193 Grid.Column=" 0"
@@ -235,13 +218,10 @@ If you want to add `Neumorphism` to specific elements a `NeumorphismShades` mark
235218 TextColor =" Gray" />
236219</sh : Shadows >
237220```
238- </td >
239- <td>
240- ![ Logo] ( Docs/neumorphism.png )
241- </td >
242- </tr>
243- </tbody >
244- </table >
221+
222+ ** OUTPUT**
223+
224+ <img src =" Docs/neumorphism.png " height =" 370 " />
245225
246226### Be creative!
247227
0 commit comments