Export (0) Print
Expand All

DropShadowEffect.ShadowDepth Property

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)

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.

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.

Silverlight

Supported in: 5, 4, 3

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

Community Additions

ADD
Show:
© 2014 Microsoft