Square translated by 25 pixels vertically and horizontally in Silverlight

The TranslateTransform element allows you to define how to transfer an element from one location to another.

<Rectangle Width="50" Height="50" Fill="Green" Stroke="Black">
<Rectangle.RenderTransform>
<TransformGroup>
<TranslateTransform X="25" Y="25"/>
</TransformGroup>
</Rectangle.RenderTransform>
</Rectangle>

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.