This documentation is archived and is not being maintained.

Model3D.Transform Property

Gets or sets the Transform3D set on the model. This is a dependency property.

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

public Transform3D Transform { get; set; }
For XAML information, see the Transform3D type.

Property Value

Type: System.Windows.Media.Media3D.Transform3D
Transform3D set on the model. The default value is MatrixTransform3D.

Identifier field

TransformProperty

Metadata properties set to true

None

<GeometryModel3D.Transform>
    <TranslateTransform3D
      OffsetX="2" OffsetY="0" OffsetZ="-1"   >
    </TranslateTransform3D>
</GeometryModel3D.Transform>

More Code

How to: Create a 3-D Scene This example shows how to create a 3-D object that looks like a flat sheet of paper which has been rotated. A Viewport3D along with the following components are used to create this simple 3-D scene:
How to: Animate 3-D Translations This topic demonstrates how to animate a translation transformation set on a 3-D model.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0
Show: