-api-id | -api-type |
---|---|
T:Windows.UI.Xaml.Media.GeneralTransform |
winrt class |
Provides generalized transformation support for objects. GeneralTransform is a base class that's in the hierarchy of practical transform classes such as TranslateTransform.
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.
There's also an intermediate base class, Transform. Properties sometimes are typed as GeneralTransform or Transform so that you can use any of the practical transforms to provide values.
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.
GeneralTransform is the parent class for Transform. Transform is the parent class for the practical transforms.
DependencyObject, Transform, XAML two-dimensional transforms sample