O'Reilly logo

XAML Unleashed by Adam Nathan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Combining Transform3Ds

In 3D, it’s common to apply three transforms to an object: scale, rotate, and translate (generally in that order). To apply multiple transforms, use a Transform3DGroup. The following XAML shows the typical usage of a Transform3DGroup:

<Transform3DGroup>  <ScaleTransform3D x:Name="Size" ScaleX="1" ScaleY="1" ScaleZ="1"/>  <RotateTransform3D>  <RotateTransform3D.Rotation>    <AxisAngleRotation3D x:Name="Orientation" Axis="0,1,0" Angle="0"/>  </RotateTransform3D.Rotation>  </RotateTransform3D>  <TranslateTransform3D x:Name="Position" OffsetX="0" OffsetY="0" OffsetZ="0"/></Transform3DGroup>

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required