ScaleTransform

The ScaleTransform scales an object in the two-dimensional x-y coordinate system. Use a ScaleTransform to stretch or shrink an object horizontally or vertically. The ScaleX property specifies the amount to stretch or shrink an object along the x-axis, and the ScaleY property specifies the amount to stretch or shrink an object along the y-axis. Scale operations are centered on the point specified by the CenterX and CenterY properties.

Multiple transforms can be applied with a TransformGroup. Custom transforms can be created with a MatrixTransform.

Transforms can alter the display of text in your application to create a decorative effect.

For example:

<c1:C1LayoutTransformer >

    <c1:C1LayoutTransformer.LayoutTransform>

        <ScaleTransform ScaleX="2" ScaleY="4"></ScaleTransform>

    </c1:C1LayoutTransformer.LayoutTransform>

    <Button Background="MediumVioletRed" Content="Scale" Height="80" Width="180" VerticalAlignment="Top" HorizontalAlignment="Right"/>

</c1:C1LayoutTransformer>


Send us comments about this topic.
Copyright © GrapeCity, inc. All rights reserved.