-api-id | -api-type |
---|---|
T:Windows.UI.Xaml.Media.Transform |
winrt class |
Defines functionality that enables transformations in a two-dimensional plane.
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 is the parent class for several derived classes that define different categories of transformations:
- CompositeTransform
- MatrixTransform
- RotateTransform
- ScaleTransform
- SkewTransform
- TransformGroup
- TranslateTransform
GeneralTransform, MatrixTransform, RotateTransform, SkewTransform, TransformGroup, TranslateTransform, XAML two-dimensional transforms sample