Drop Shadow effect in a universal Windows application

I'm looking for an easy way to add a Drop Shadow effect like in WPF using only XAML. I would like to apply it for items in a ListView.

I did not find anything like this except for such experiments: https://blogs.windows.com/buildingapps/2016/09/12/creating-beautiful-effects-for-uwp/#BIRDSebvmJwAFY5Y.97

This seems to require a lot of code. I would like to avoid this.

+4
source share
1 answer

API- Composition, . , , UWP. DropShadowPanel, .

<controls:DropShadowPanel BlurRadius="4.0"
                          ShadowOpacity="0.70"
                          OffsetX="5.0"
                          OffsetY="5.0"
                          Color="Black">
    <Image Width="200" Source="Unicorn.png" Stretch="Uniform"/>
</controls:DropShadowPanel>    

, 10.0.14393.0 (Anniversary Update).

+6

Source: https://habr.com/ru/post/1664559/


All Articles