ProjectionCamera.UpDirection 属性

定义

获取或设置定义摄像机向上方向的 Vector3D

public:
 property System::Windows::Media::Media3D::Vector3D UpDirection { System::Windows::Media::Media3D::Vector3D get(); void set(System::Windows::Media::Media3D::Vector3D value); };
public System.Windows.Media.Media3D.Vector3D UpDirection { get; set; }
member this.UpDirection : System.Windows.Media.Media3D.Vector3D with get, set
Public Property UpDirection As Vector3D

属性值

表示场景投影中的向上方向的 Vector3D。

示例

以下摘录在 PerspectiveCamera 上设置此属性。

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

注解

依赖项属性信息

标识符字段 UpDirectionProperty
元数据属性设置为 true

适用于