Export (0) Print
Expand All

DropShadowEffect.Direction Property

Gets or sets the angle at which the shadow is cast.

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

public double Direction { get; set; }
<DropShadowEffect Direction="double"/>

Property Value

Type: System.Double
The angle at which the shadow is cast, where 0 is immediately to the right of the object and positive values move the shadow counterclockwise. The default is 315.

Dependency property identifier field: DirectionProperty

The valid range of values is from 0 through 360. The value 0 puts the drop shadow immediately to the right of the object. Subsequent values move the shadow around the object in a counter-clockwise direction. For example, a value of 90 indicates the shadow is cast directly upward from the object; a value of 180 is cast directly to the left of the object, and so on.

The following diagram shows in which direction the shadow is cast for a given value of this property.

Diagram: DropShadow direction

The following illustrations demonstrate the effect of this property.

DropShadow going in the upper-right direction.Shows drop shadow going down from object.

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