16-may-2022 update: added an application made by @eddiel to generate the code for a shadow (check out explanations below)
Hello all,
Here is version 2.0 for one of my first Power Apps components which will allow you to add nice good-looking shadow effects in your applications:
![ShadowBoxSamples.png ShadowBoxSamples.png](/_api/msdyn_richtextfiles%28B19FBCEB-D7A5-437F-8FEF-287F864DF7DA%29/msdyn_imageblob/$value?size=full)
![TextBoxDropShadow.gif TextBoxDropShadow.gif](/_api/msdyn_richtextfiles%286BDF454E-1C10-4B82-B836-CB913539835C%29/msdyn_imageblob/$value?size=full)
This component, called the ShadowBox, allows you to render a rectangle shadow. The shadow is fully customizable and the corners of the inner box can be rounded (to the point that it renders a full-circle shadow).
For this new version of the component, properties have been regrouped:
- Shadow (record) can be used to set the shadow's options: OffsetX, OffsetY, Color, Blur, Opacity
- Box (record) can be used to set the inner box's options: Fill, Opacity, BorderThickness, BorderColor, Radius
- Edge (record) can be used to set the edge's option: Position, Width, Color, Padding
- ShowEdge (boolean) will show/hide the edge
All details about the component and its properties, along with important notes, can be found here: https://github.com/e-gallis/PowerApps/tree/master/Components/ShadowBox
To download the component: https://github.com/e-gallis/PowerApps/blob/master/Components/ShadowBox/ShadowBox.msapp
I hope you'll like this component and that it will help you create nice applications...
EDIT - 16-may-2022 - @eddiel has made a little application with a nice UI to allow you to generate the code for a shadow and just copy/paste it to your image control:
![R3dKap_0-1652728479652.png R3dKap_0-1652728479652.png](/_api/msdyn_richtextfiles%288B4A31FC-B2AE-40E2-BA9B-9E6566AB220B%29/msdyn_imageblob/$value?size=full)
The application is attached to this post and can be downloaded below. Thanks for this @eddiel... 😉
See you all,
Emmanuel