Skip to content

Latest commit

 

History

History
52 lines (32 loc) · 3.46 KB

transform.md

File metadata and controls

52 lines (32 loc) · 3.46 KB
-api-id -api-type
T:Windows.UI.Xaml.Media.Transform
winrt class

Windows.UI.Xaml.Media.Transform

-description

Defines functionality that enables transformations in a two-dimensional plane.

-remarks

Transformation types include rotation (RotateTransform), scale (ScaleTransform), skew/shear (SkewTransform), and translation (TranslateTransform).

MatrixTransform is for transforms that don't use these conventions and instead use Matrix values for transform definition.

CompositeTransform and TransformGroup both support specifying multiple transforms for a combined transformation logic.

You can animate properties of a transform. For XAML syntaxes that take a Transform, you need to specify a nonabstract derived type of Transform as an object element. Typically, this is one of: MatrixTransform, RotateTransform, ScaleTransform, SkewTransform, or TranslateTransform. See the syntax sections on the appropriate class.

Use the MatrixTransform class to create custom transformations that are not provided by the other Transform derived classes. A two-dimensional x-y plane uses a 3x3 matrix for transformations.

Transform is the property type for UIElement.RenderTransform. With this property, you can apply any of the practical transforms to a UIElement when it renders. Other less commonly used properties that take a Transform are: Brush.RelativeTransform, Brush.Transform, Geometry.Transform.

Transform derived classes

Transform is the parent class for several derived classes that define different categories of transformations:

-examples

-see-also

GeneralTransform, MatrixTransform, RotateTransform, SkewTransform, TransformGroup, TranslateTransform, XAML two-dimensional transforms sample