Transform3D
As with Transform
s in 2D, Transform3D
s allow you to position, rotate, and size 3D objects in space. Transform3D
s can be applied to Model3D
s, ModelVisual3D
s, and the Camera
. This is done by setting their respective Transform
properties. When you set the Transform
property on a 3D object, you are mapping your object’s coordinate space into a new coordinate space. This is no different than what happens when you position an element in 2D by using the Canvas.Left
and Canvas.Top
properties.
In 3D, there is a top-level world coordinate system. To position, size, and orient 3D objects within the world coordinate system, you use the five subclasses of Transform3D
:
TranslateTransform3D—Offsets a 3D object relative to its container.
ScaleTransform3D ...
Get XAML Unleashed now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.