-api-id | -api-type |
---|---|
T:Windows.UI.Xaml.Media.CompositeTransform |
winrt class |
Applies multiple transform operations to an object.
<CompositeTransform .../>
CompositeTransform applies multiple transforms in this order:
- Scale (ScaleX, ScaleY )
- Skew (SkewX, SkewY)
- Rotate (Rotation)
- Translate (TranslateX, TranslateY)
If you want to apply multiple transforms to an object in a different order, you can create a TransformGroup and insert the transforms in your intended order.
CompositeTransform uses the same center point (CenterX, CenterY) for all transformations. If you want to specify different center points per transform, use TransformGroup.
This example shows how to apply the same transforms to an object by using either a CompositeTransform or a TransformGroup.
[!code-xamlCompositeTransform]
Transform, XAML two-dimensional transforms sample, TransformGroup