-api-id | -api-type |
---|---|
T:Windows.UI.Xaml.Media.SkewTransform |
winrt class |
Represents a two-dimensional skew.
<SkewTransform .../>
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:
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]