Skip to content

Latest commit

 

History

History
40 lines (25 loc) · 3.08 KB

generaltransform.md

File metadata and controls

40 lines (25 loc) · 3.08 KB
-api-id -api-type
T:Microsoft.UI.Xaml.Media.GeneralTransform
winrt class

Microsoft.UI.Xaml.Media.GeneralTransform

-description

Provides generalized transformation support for objects. GeneralTransform is a base class that's in the hierarchy of practical transform classes such as TranslateTransform.

-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.

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 derived classes

GeneralTransform is the parent class for Transform. Transform is the parent class for the practical transforms.

-examples

-see-also

DependencyObject, Transform, XAML two-dimensional transforms sample