Tuesday, June 9, 2009

Scale Transform

This allows you to adjust the horizontal and vertical scale of the Silverlight control.This is done by setting the scaleXproperty to adjust the horizontal scale and the scaleX property to adjust the vertical scale and the values are based on 1 being the current size of the control.For example the following code scales image control to twice the initial size.

<image.rendertransform>
<transformgroup>
<scaletransform scalex="2" scaley="2">
<skewtransform/>
<rotatetransform/>
<translatetransform/>
</transformgroup>
</Grid.RenderTransform>
</image>

No comments:

Post a Comment