Skip to content

Latest commit

 

History

History
44 lines (27 loc) · 1.85 KB

compositetransform.md

File metadata and controls

44 lines (27 loc) · 1.85 KB
-api-id -api-type
T:Windows.UI.Xaml.Media.CompositeTransform
winrt class

Windows.UI.Xaml.Media.CompositeTransform

-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