This topic has not yet been rated - Rate this topic

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 value DropShadow 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.

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ