Transform

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Defines functionality that enables transformations in a two-dimensional plane. Transformations include rotation (RotateTransform), scale (ScaleTransform), skew (SkewTransform), and translation (TranslateTransform).

Syntax Notes

See Derived Objects for syntax information.

Managed Equivalent

Transform

Remarks

For XAML syntaxes that take a Transform object, you need to specify a nonabstract derived type of Transform as an object element. For more information, see the XAML syntax for the MatrixTransform, RotateTransform, ScaleTransform, SkewTransform, TransformGroup, and TranslateTransform objects.

Use the MatrixTransform object to create custom transformations that are not provided by the RotateTransform, ScaleTransform, SkewTransform, and TranslateTransform objects.

A two-dimensional x-y plane uses a 3 x 3 matrix for transformations. You can multiply affine transformation matrices to form linear transformations, such as rotation and skew (shear) transformations that are followed by translation.

An affine transformation matrix has its final column equal to (0, 0, 1); therefore, you have to specify only the members in the first two columns.

You cannot extract the matrix-specific information from the non-matrix transformations. However, you can adjust the non-matrix transformations with their specific properties, or replace a transformation with a matrix transformation at run time.