Thursday, 9 June 2011

Silverlight Image Reflections

It’s really easy to use image reflections in Silverlight and here’s an example:


You simply use two image controls one for the main image and one for the mirror image.  Set the mirrored image opacity (the closer to zero the more see through), RenderTransformOrigin sets the location beneath the original image and to flip the image just use ScaleTransform ScaleY="-1".

Here’s the code:

Here’s a link to download the source code for this example:

No comments:

Post a Comment