Skip to content

Latest commit

 

History

History
42 lines (25 loc) · 1.55 KB

skewtransform.md

File metadata and controls

42 lines (25 loc) · 1.55 KB
-api-id -api-type
T:Windows.UI.Xaml.Media.SkewTransform
winrt class

Windows.UI.Xaml.Media.SkewTransform

-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