任何人都可以指导如何在Windows通用应用程序中添加阴影效果到网格?

时间:2016-04-18 11:19:33

标签: win-universal-app

2 个答案:

答案 0 :(得分:0)

这可能会有所帮助

<Grid  >

            <Rectangle Width="230" Height="225" Margin="1,1,0,0" Stroke="#99000000" StrokeThickness="1" HorizontalAlignment="Left" VerticalAlignment="Top" />
            <Rectangle Width="230" Height="225" Margin="2,2,0,0" Stroke="#4C000000" StrokeThickness="1" HorizontalAlignment="Left" VerticalAlignment="Top" />
            <Rectangle Width="230" Height="225" Margin="3,3,0,0" Stroke="#19000000" StrokeThickness="1" HorizontalAlignment="Left" VerticalAlignment="Top" />
        </Grid>

答案 1 :(得分:-1)

如果你有HTML / JS UWP应用程序,那么你可以尝试使用CSS样式

box-shadow: 7px 7px 5px 0px rgba(50, 50, 50, 0.75);