This documentation is archived and is not being maintained.

DropShadowBitmapEffect.Direction Property

Note: This API is now obsolete. The non-obsolete alternative is DropShadowEffect. Gets or sets the angle at which the shadow is cast.

Namespace:  System.Windows.Media.Effects
Assembly:  PresentationCore (in PresentationCore.dll)
XMLNS for XAML: http://schemas.microsoft.com/winfx/2006/xaml/presentation, http://schemas.microsoft.com/netfx/2007/xaml/presentation

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

Property Value

Type: System.Double
The angle at which the shadow is cast. The valid range of values is from 0 through 360. The value 0 puts the direction immediately to the right of the object. Subsequent values move the direction 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 default value is 315.

Identifier field

DirectionProperty

Metadata properties set to true

None

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

Diagram: DropShadow direction

The following illustration demonstrates the effect of this property.

Screenshot: Compare shadow direction

.NET Framework

Supported in: 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: