How to set shadow around grid in silverlight?

I want to set the Shadow effect around all sides of the grid.

I am using the DropShadowEffect property of the control to set the shadow.

What I found is the Direction property.

<Grid x:Name="LayoutRoot" Background="#F4F2F1" Width="300" Height="300"> <Grid.Effect> <DropShadowEffect BlurRadius="300" Color="#877b77" Opacity="100" ShadowDepth="10" Direction="0" /> </Grid.Effect> </Grid> 

I got

in the following way

enter image description here

I want the shadow to appear on all sides of the grid.

I used this link to define the direction property, but did not give me what I want

How to set the shadow in all directions?

+7
source share
1 answer

You should set ShadowDepth to 0 (the shadow is right below the border).

NTN Sebi

+12
source

All Articles