다음을 통해 공유


DropShadowEffect.ShadowDepth Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets or sets the distance between the object and the shadow that it casts.

Namespace:  System.Windows.Media.Effects
Assembly:  System.Windows (in System.Windows.dll)

Syntax

'Declaration
Public Property ShadowDepth As Double
public double ShadowDepth { get; set; }
<DropShadowEffect ShadowDepth="double"/>

Property Value

Type: System.Double
The distance between the plane of the object casting the shadow and the shadow plane measured in devicepixels. The valid range of values is from 0 through 300. The default is 5.

Remarks

Dependency property identifier field: ShadowDepthProperty

The following illustrations demonstrate the effect of this property.

Shows drop shadow with large ShadowDepth valueDropShadow with small ShadowDepth value.

Version Information

Silverlight

Supported in: 5, 4, 3

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.