Can anyone guide how can I add shadow effect to Grid in windows universal app?

限于喜欢 提交于 2019-12-12 04:26:16

问题


add shadow effect to Grid in windows universal app like this image


回答1:


This might help

<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>



回答2:


If you have HTML/JS UWP application then you can try to use CSS style

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


来源:https://stackoverflow.com/questions/36692475/can-anyone-guide-how-can-i-add-shadow-effect-to-grid-in-windows-universal-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!