DistantLight.CoordinateSpace Property

Definition

The Visual used to determine the light's direction. The light's Direction property is relative to this Visual's coordinate space. CoordinateSpace is a required property. If it is not set, the DistantLight will not render.

public:
 property Visual ^ CoordinateSpace { Visual ^ get(); void set(Visual ^ value); };
Visual CoordinateSpace();

void CoordinateSpace(Visual value);
public Visual CoordinateSpace { get; set; }
var visual = distantLight.coordinateSpace;
distantLight.coordinateSpace = visual;
Public Property CoordinateSpace As Visual

Property Value

The Visual used to determine the light's direction. The light's Direction property is relative to this Visual's coordinate space.

Remarks

DistantLight.Direction is relative to DistantLight.CoordinateSpace. Every Visual has an implicit 3D coordinate space, defined in this way:

X-axis runs from the left edge to the right edge of the visual.  Y-axis runs from the top of the visual to the bottom.  Z-axis is perpendicular to the visual.

The X-axis runs from left to right. The Y-axis runs from top to bottom. The Z-axis points out of the plane. The original point of this coordinate is the upper-left corner of the Visual, and the unit is Display Independent Pixel (DIP). A light's offset and direction are defined in this coordinate space.

Applies to

See also