Windows.UI.Xaml.Media.CompositeTransform

June 22, 2022 ยท View on GitHub

-description

Applies multiple transform operations to an object.

-xaml-syntax

<CompositeTransform .../>

-remarks

CompositeTransform applies multiple transforms in this order:

  1. Scale (ScaleX, ScaleY )
  2. Skew (SkewX, SkewY)
  3. Rotate (Rotation)
  4. 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.

-examples

This example shows how to apply the same transforms to an object by using either a CompositeTransform or a TransformGroup.

[!code-xamlCompositeTransform]

-see-also

Transform, XAML two-dimensional transforms sample, TransformGroup