DistantLight.CoordinateSpace Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 CoordinateSpace 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 direction is from left to right. Y direction is from top to bottom. Z direction is point out of the plane. The original point of this coordinate is the upper-left corner of the visual, and the unit is DIP. A light’s offset and direction are defined in this coordinate space.