ProjectionCamera.UpDirection Property

 

Gets or sets a Vector3D which defines the upward direction of the camera.

Namespace:   System.Windows.Media.Media3D
Assembly:  PresentationCore (in PresentationCore.dll)

public Vector3D UpDirection { get; set; }

Property Value

Type: System.Windows.Media.Media3D.Vector3D

Vector3D that represents the upward direction in the scene projection.

Identifier field

UpDirectionProperty

Metadata properties set to true

None

The following excerpt sets this property on a PerspectiveCamera.

<Viewport3D.Camera>
  <PerspectiveCamera FarPlaneDistance="20" LookDirection="5,-2,-3" UpDirection="0,1,0" NearPlaneDistance="0" Position="-5,2,3" FieldOfView="45" />
</Viewport3D.Camera>

.NET Framework
Available since 3.0
Return to top
Show: