Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

DirectionalLight.Direction Property

Represents the vector along which the light's effect will be seen on models in a 3-D scene.

Namespace:  System.Windows.Media.Media3D
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 Vector3D Direction { get; set; }
<object>
  <object.Direction>
    <Vector3D .../>
  </object.Direction>
</object>
<object Direction="Vector3D" .../>

Property Value

Type: System.Windows.Media.Media3D.Vector3D
Vector3D along which the light projects, and which must have a non-zero magnitude. The default value is (0,0,-1).

Identifier field

DirectionProperty

Metadata properties set to true

None

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft