Windows.UI.Xaml.Media.SkewTransform

June 22, 2022 · View on GitHub

-description

Represents a two-dimensional skew.

-xaml-syntax

<SkewTransform .../>

-remarks

-examples

This example uses a SkewTransform to skew text. A skew, also known as a shear, is a transformation that stretches the coordinate space in a non-uniform manner. In this example, the two text strings are skewed -30 degrees and 30 degrees along the x-coordinate.

[!code-xamlSkewTransform_1]

The text looks like this after the transform is applied:

Text with a skew transform applied

This example shows how you can access and modify a transform in code at runtime. Each time the rectangle is pressed, the skew is increased.

[!code-xamlSkewTransform]

[!code-csharpSkewTransform_code]

-see-also

Transform, XAML two-dimensional transforms sample