Windows.UI.Xaml.Media.ScaleTransform

June 22, 2022 · View on GitHub

-description

Scales an object in the two-dimensional x-y coordinate system.

-xaml-syntax

<ScaleTransform .../>

-remarks

-examples

This XAML example uses a ScaleTransform to scale text from its original size.

[!code-xamlScaleTransform]

The text looks like this after the transform is applied:

Text with a scale transform applied

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

[!code-xamltransforms_ovw_interactive_transforms]

[!code-csharptransforms_ovw_interactive_transforms_code]

[!code-vbtransforms_ovw_interactive_transforms_code]

-see-also

Transform, XAML two-dimensional transforms sample